When scrolling on a map the coordinates provided from a popup event reflect a different value from what I expected.
For example if I click near Tokyo Japan I get "35.68296, 139.80151"
Now if I scroll the map to the left until I find Tokyo again I get "35.65925, -220.13155"
Is there a way to force it so it always returns the values within -180 to 180 as expected, or that's something I have to working with maths?
Environment
You can use the WrapLatLng function to normalize values.
You can use the WrapLatLng function to normalize values.
Thanks gonna give that a try and see how it goes ;)
Closing, @krdyke's answer is correct.
Yes thanks. It worked perfectly ;)
Most helpful comment
You can use the WrapLatLng function to normalize values.