Live map: How to prevent pop-up at load time?


This HTML + JavaScript page works fine to display waypoints in a live map, but when displayed, the last item pops up.

marker = L.marker([46.823576, -0.572421]).addTo(map);
Desc1").openPopup(); marker = L.marker([53.192883, -1.432042]).addTo(map); marker.bindPopup("Item2

Is there a way to avoid this problem?

Besides, I’d like the map to be zoomed out intially, so as to view all waypoints.

Thank you.

3 posts - 3 participants

Read full topic

Ce sujet de discussion accompagne la publication sur