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:
@@ -24,8 +24,8 @@ let areas = $state<WindArea[]>([]);
|
||||
let mapReady = $state(false);
|
||||
let initialGebietsNr = $state<string | null>(null);
|
||||
let resetMap: (() => void) | null = null;
|
||||
let hiddenStatuses = $state<string[]>([]);
|
||||
let hiddenRings = $state<string[]>(["2km", "5km"]);
|
||||
let hiddenStatuses = $state<string[]>(["rechtskraeftig"]);
|
||||
let hiddenRings = $state<string[]>([]);
|
||||
let mapActive = $state(false);
|
||||
|
||||
function toggleStatus(status: string) {
|
||||
@@ -171,9 +171,8 @@ let areas = $state<WindArea[]>([]);
|
||||
<!-- Legend -->
|
||||
<div class="mt-2 flex flex-wrap gap-x-5 gap-y-1.5 text-xs text-stein-400">
|
||||
{#each [
|
||||
{ status: "rechtskraeftig", color: "#2d7a45", label: t(T.windkarte_legend_rechtskraeftig) },
|
||||
{ status: "entwurf_2", color: "#b08a52", label: t(T.windkarte_legend_entwurf_2) },
|
||||
{ status: "entwurf_2_voraussichtlich", color: "#d4752a", label: t(T.windkarte_legend_entwurf_2_voraussichtlich) },
|
||||
{ status: "rechtskraeftig", color: "#2d7a45", label: t(T.windkarte_legend_rechtskraeftig) },
|
||||
{ status: "entwurf_2", color: "#b08a52", label: t(T.windkarte_legend_entwurf_2) },
|
||||
] as item}
|
||||
<button
|
||||
type="button"
|
||||
|
||||
Reference in New Issue
Block a user