diff --git a/templates/index.html b/templates/index.html index 4f4cb0a..8018384 100644 --- a/templates/index.html +++ b/templates/index.html @@ -121,7 +121,7 @@ let targetLatLng = map.containerPointToLatLng(targetCenterPoint); // 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() { user_marker.setLatLng(latlng).bindPopup('').openPopup(); });