Thank you for investigation furter.
But sorry, on your test page, “Boulder Beach” seems to be located in Canada while it’s in South Africa…
Also, the maxbound feature that make the map to automatically re-center don’t work in your example while it work on my page:
https://epicside.be/experience/observer-les-manchots-a-boulders-beach
Only the Boulder Beach marker position is wrong. Everything else is OK.
-
This reply was modified 3 years, 7 months ago by matbe81.
@hupe13 Thank you but i don’t think the maxbounds parameter is impacting the position (and misalignment) of the marker on the map.
-
This reply was modified 3 years, 7 months ago by matbe81.
Very strange as the code was working fine some months ago. DId some updates break it?
maxBounds: When this option is set, the map restricts the view to the given geographical bounds, bouncing the user back if the user tries to pan outside the view. To set the restriction dynamically, use setMaxBounds method.
Source: https://leafletjs.com/reference.html