diff --git a/app.js b/app.js index 8144933..41e3c4a 100644 --- a/app.js +++ b/app.js @@ -1110,6 +1110,26 @@ document.addEventListener('DOMContentLoaded', async () => { const layer = L.geoJSON(geojsonData, { style: styleFunc, + pointToLayer: (feature, latlng) => { + if (name.toLowerCase().includes('wohngebäude')) { + return L.marker(latlng, { + icon: L.divIcon({ + className: 'residential-icon', + html: '🏠', + iconSize: [24, 24], + iconAnchor: [12, 12] + }) + }); + } + return L.circleMarker(latlng, { + radius: 4, + fillColor: styleFunc().color || 'violet', + color: "#fff", + weight: 1, + opacity: 1, + fillOpacity: 0.8 + }); + }, onEachFeature: (feature, l) => { if (feature.properties) { let popup = `${name}

`;