1
0
forked from orson/bachemap

ooops, my bad x2

This commit is contained in:
Orson 2025-03-24 17:32:15 -06:00
parent 07bf150f35
commit 999fe39ad4

View File

@ -121,7 +121,7 @@
let targetLatLng = map.containerPointToLatLng(targetCenterPoint); let targetLatLng = map.containerPointToLatLng(targetCenterPoint);
// Fly to the adjusted center so the marker appears 25% lower from the center // Fly to the adjusted center so the marker appears 25% lower from the center
map.flyTo(latlng, 18, { duration: 0.7 }); map.flyTo(targetCenterPoint, 18, { duration: 0.7 });
map.once('moveend', function() { map.once('moveend', function() {
user_marker.setLatLng(latlng).bindPopup('<button id="pinner-pop">Agregar bache-o-cosa</button>').openPopup(); user_marker.setLatLng(latlng).bindPopup('<button id="pinner-pop">Agregar bache-o-cosa</button>').openPopup();
}); });