diff --git a/templates/index.html b/templates/index.html index ccb3c31..08f7d39 100644 --- a/templates/index.html +++ b/templates/index.html @@ -120,11 +120,14 @@ // Convert the adjusted point back to geographical coordinates let targetLatLng = map.containerPointToLatLng(targetCenterPoint); + + user_marker.setLatLng(latlng).bindPopup('').openPopup(); // Fly to the adjusted center so the marker appears 25% lower from the center map.flyTo(targetLatLng, 17, { duration: 0.7 }); - map.once('moveend', function() { - user_marker.setLatLng(latlng).bindPopup('').openPopup(); - }); + + // map.once('moveend', function() { + + // }); user_radial.remove(); }); // });