forked from orson/bachemap
ooops, my bad x3
This commit is contained in:
parent
999fe39ad4
commit
fd45588e19
@ -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();
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user