diff --git a/components/MapComponent.js b/components/MapComponent.js index 47383d9e9..0e059d3cd 100644 --- a/components/MapComponent.js +++ b/components/MapComponent.js @@ -843,9 +843,11 @@ const MapComponent = ({ locations, onLocationUpdate }) => { locations.forEach((location) => { const { latitude, longitude } = parsePoint(location.position); const poiTypName = poiTypMap.get(location.idPoiTyp) || "Unbekannt "; + //console.log("poiTypName:", poiTypName); + //console.log("location.idPoiTyp:", location.idPoiTyp); const marker = L.marker([latitude, longitude], { icon: L.icon({ - iconUrl: "/img/icons/pois/poi-marker-icon-20.png", + iconUrl: `/img/icons/pois/poi-marker-icon-${location.idPoiTyp}.png`, iconSize: [25, 41], iconAnchor: [12, 41], popupAnchor: [1, -34],