Hello,
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);
marker.bindPopup("Item1
Desc1").openPopup();
marker = L.marker([53.192883, -1.432042]).addTo(map);
marker.bindPopup("Item2
Desc2").openPopup();
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
Ce sujet de discussion accompagne la publication sur https://community.openstreetmap.org/t/live-map-how-to-prevent-pop-up-at-load-time/97949