Fixed visibility of 'Projektgesellschaft' areas by removing hardcoded transparency checks
Deploy TrassenPlaner / deploy (push) Waiting to run
Details
Deploy TrassenPlaner / deploy (push) Waiting to run
Details
This commit is contained in:
parent
b75dd45677
commit
0cf7110f67
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue