google-maps-react-markers
google-maps-react-markers copied to clipboard
Switching to RTL direction will move markers position
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.
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:
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.
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