windkarte: Rechtskräftig default hidden, remove Entwurf-2-voraussichtlich, 2km/5km rings on by default
- Hide status badge for rechtskraeftig in WindAreaPanel - Default hiddenStatuses=["rechtskraeftig"] so polygons start hidden - Fix: call restyleAll after geojsonLayer init so initial hidden state applies - Default hiddenRings=[] so 2km+5km buffer rings show on selection - Remove entwurf_2_voraussichtlich from legend - Lower maxZoom 12→11 for more context on feature select Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
onready = null,
|
||||
initialGebietsNr = null,
|
||||
hiddenStatuses = [],
|
||||
hiddenRings = ["2km", "5km"],
|
||||
hiddenRings = [],
|
||||
}: {
|
||||
areas: WindArea[];
|
||||
onselect: (area: WindArea | null, center: [number, number] | null) => void;
|
||||
@@ -52,7 +52,7 @@
|
||||
let selectedSlug = $state<string | null>(null);
|
||||
let geojsonLayer: import("leaflet").GeoJSON | null = null;
|
||||
let buffering = $state(false);
|
||||
let _hiddenRings: string[] = ["2km", "5km"];
|
||||
let _hiddenRings: string[] = [];
|
||||
|
||||
$effect(() => {
|
||||
_hiddenRings = hiddenRings;
|
||||
@@ -164,7 +164,7 @@
|
||||
map!.fitBounds((layer as import("leaflet").Polygon).getBounds(), {
|
||||
paddingTopLeft: [40, 40],
|
||||
paddingBottomRight: [desktop ? 320 : 40, desktop ? 40 : 300],
|
||||
maxZoom: 12,
|
||||
maxZoom: 11,
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -278,6 +278,8 @@
|
||||
},
|
||||
}).addTo(map);
|
||||
|
||||
restyleAll(selectedSlug);
|
||||
|
||||
// Labels: show from zoom 13, scale font proportionally with zoom
|
||||
const syncLabels = () => {
|
||||
if (!labelLayer || !map) return;
|
||||
|
||||
Reference in New Issue
Block a user