added fcp popup to preorder

This commit is contained in:
Luca Haid
2025-04-07 09:42:48 +02:00
parent eb611a4f29
commit 7c5dfb5fe6

View File

@@ -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 = "<a href='" + google_maps_link + "' target='_blank'>Google Maps</a><br />" + fcp.text;
marker.bindPopup(popup_content);
});
}
}