From af52eb6e548a40211ed5cc72f2a2e23e0f9ad040 Mon Sep 17 00:00:00 2001 From: orson Date: Mon, 24 Mar 2025 17:41:42 -0600 Subject: [PATCH] ooops, my bad, the final fix --- templates/index.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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(); }); // });