google-maps-react-markers icon indicating copy to clipboard operation
google-maps-react-markers copied to clipboard

Switching to RTL direction will move markers position

Open Pacn91 opened this issue 6 months ago • 0 comments

Verify latest release

  • [X] I verified that the issue exists in the latest release

I know how to solve the bug

I don't know how to solve the bug and I will provide an example.

Link to the code that reproduces this issue

https://giorgiabosello.github.io/google-maps-react-markers/

To Reproduce

Using your demo playground, update your dom HTML tag by adding the dir attribute as dir="rtl". The markers will change position.

image

Describe the Bug

With direction as 'RTL' the marker lng value is changed. The lan stayed the same. On your demo website, if we move the blue marker for any position, like this: image

and then change the dir from LTR to RTL we can see that all the markers changed position and if we move again the blue marker to the old position the lng value is quite diferent now.

image

Expected Behavior

Switching between 'LTR' and 'RTL' should not have an impact on the markers position

Which browser are you using? (if relevant)

Chrome and Firefox

Pacn91 avatar Aug 07 '24 15:08 Pacn91