From 7c5dfb5fe6bfaec0c4065899328e45135ee706b4 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Mon, 7 Apr 2025 09:42:48 +0200 Subject: [PATCH] added fcp popup to preorder --- Layout/default/Preorder/Index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Layout/default/Preorder/Index.php b/Layout/default/Preorder/Index.php index 500b6cea8..5682799d2 100644 --- a/Layout/default/Preorder/Index.php +++ b/Layout/default/Preorder/Index.php @@ -875,6 +875,9 @@ $pagination_entity_name = "Vorbestellungen"; fcp.result.forEach((fcp) => { var icon = L.MakiMarkers.icon({icon: "viewpoint", color: "yellow", size: "m"}); var marker = L.marker([fcp.lat, fcp.lng], {icon: icon}).addTo(map); + var google_maps_link = "https://www.google.com/maps/search/?api=1&query=" + fcp.lat + "," + fcp.lng; + var popup_content = "Google Maps
" + fcp.text; + marker.bindPopup(popup_content); }); } }