1
0
forked from orson/bachemap

ooops, my bad x3

This commit is contained in:
Orson 2025-03-24 17:34:13 -06:00
parent 999fe39ad4
commit fd45588e19

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(targetCenterPoint, 18, { duration: 0.7 }); map.flyTo(latlng, 17, { 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();
}); });