diff --git a/index.html b/index.html index 51d45d0..5174822 100644 --- a/index.html +++ b/index.html @@ -1237,20 +1237,18 @@ }).addTo(map), ownerStatus: L.geoJSON(null, { style: (f) => { - // Extract status, assuming the first one holds the color or they are all same - // It uses _mergedOwners from preprocessing if available, else standard feature properties const properties = f.properties._mergedOwners && f.properties._mergedOwners.length > 0 ? f.properties._mergedOwners[0] : f.properties; const status = (properties.status || 'Unbekannt').trim(); const color = getStatusColor(status); - const isUnknown = color === 'transparent' || status.includes('04') || status.includes('05'); + const isTransparent = color === 'transparent'; return { stroke: false, fillColor: color, - fillOpacity: isUnknown ? 0.0 : 0.6, + fillOpacity: isTransparent ? 0.0 : 0.6, pane: 'ownerStatusPane' }; }, - interactive: false // Don't steal popup clicks from the outline layer + interactive: false }).addTo(map), usage: L.geoJSON(null, { style: usageStyle,