feat(windkarte): neuer Status entwurf_2_voraussichtlich (orange)
Farbe #d4752a. Legende, Typ-Union, Übersetzungen ergänzt. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -24,9 +24,10 @@
|
|||||||
let buffering = $state(false);
|
let buffering = $state(false);
|
||||||
|
|
||||||
const COLORS: Record<string, { fill: string; stroke: string }> = {
|
const COLORS: Record<string, { fill: string; stroke: string }> = {
|
||||||
rechtskraeftig: { fill: "#2d7a45", stroke: "#1a4d28" },
|
rechtskraeftig: { fill: "#2d7a45", stroke: "#1a4d28" },
|
||||||
entwurf_2: { fill: "#b08a52", stroke: "#6e5530" },
|
entwurf_2: { fill: "#b08a52", stroke: "#6e5530" },
|
||||||
entwurf_3: { fill: "#436e85", stroke: "#264150" },
|
entwurf_2_voraussichtlich:{ fill: "#d4752a", stroke: "#8a4a18" },
|
||||||
|
entwurf_3: { fill: "#436e85", stroke: "#264150" },
|
||||||
};
|
};
|
||||||
|
|
||||||
function style(status: string, selected: boolean, hovered = false) {
|
function style(status: string, selected: boolean, hovered = false) {
|
||||||
|
|||||||
@@ -135,6 +135,10 @@ let areas = $state<WindArea[]>([]);
|
|||||||
<span class="inline-block size-2.5 rounded-sm" style="background:#b08a52; opacity:.7"></span>
|
<span class="inline-block size-2.5 rounded-sm" style="background:#b08a52; opacity:.7"></span>
|
||||||
{t(T.windkarte_legend_entwurf_2)}
|
{t(T.windkarte_legend_entwurf_2)}
|
||||||
</span>
|
</span>
|
||||||
|
<span class="flex items-center gap-1.5">
|
||||||
|
<span class="inline-block size-2.5 rounded-sm" style="background:#d4752a; opacity:.7"></span>
|
||||||
|
{t(T.windkarte_legend_entwurf_2_voraussichtlich)}
|
||||||
|
</span>
|
||||||
<span class="flex items-center gap-x-3 gap-y-1 flex-wrap text-stein-300">
|
<span class="flex items-center gap-x-3 gap-y-1 flex-wrap text-stein-300">
|
||||||
<span class="text-stein-400">{t(T.windkarte_legend_distances)}</span>
|
<span class="text-stein-400">{t(T.windkarte_legend_distances)}</span>
|
||||||
{#each [{ color: "#e35651", label: "200 m" }, { color: "#b08a52", label: "600 m" }, { color: "#436e85", label: "1 km" }] as ring}
|
{#each [{ color: "#e35651", label: "200 m" }, { color: "#b08a52", label: "600 m" }, { color: "#436e85", label: "1 km" }] as ring}
|
||||||
|
|||||||
@@ -202,6 +202,7 @@ const TRANSLATION_KEYS = [
|
|||||||
"windkarte_reset_aria",
|
"windkarte_reset_aria",
|
||||||
"windkarte_status_rechtskraeftig",
|
"windkarte_status_rechtskraeftig",
|
||||||
"windkarte_status_entwurf_2",
|
"windkarte_status_entwurf_2",
|
||||||
|
"windkarte_status_entwurf_2_voraussichtlich",
|
||||||
"windkarte_status_entwurf_3",
|
"windkarte_status_entwurf_3",
|
||||||
"windkarte_label_flaeche",
|
"windkarte_label_flaeche",
|
||||||
"windkarte_label_anlagen_geplant",
|
"windkarte_label_anlagen_geplant",
|
||||||
@@ -215,6 +216,7 @@ const TRANSLATION_KEYS = [
|
|||||||
"windkarte_action_osm",
|
"windkarte_action_osm",
|
||||||
"windkarte_legend_rechtskraeftig",
|
"windkarte_legend_rechtskraeftig",
|
||||||
"windkarte_legend_entwurf_2",
|
"windkarte_legend_entwurf_2",
|
||||||
|
"windkarte_legend_entwurf_2_voraussichtlich",
|
||||||
"windkarte_legend_distances",
|
"windkarte_legend_distances",
|
||||||
// Strommix-Live-Widget (StrommixBlock.svelte).
|
// Strommix-Live-Widget (StrommixBlock.svelte).
|
||||||
"strommix_header",
|
"strommix_header",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ export type WindArea = {
|
|||||||
_slug: string;
|
_slug: string;
|
||||||
gebiets_nr: string;
|
gebiets_nr: string;
|
||||||
bezeichnung?: string;
|
bezeichnung?: string;
|
||||||
status?: "rechtskraeftig" | "entwurf_2" | "entwurf_3";
|
status?: "rechtskraeftig" | "entwurf_2" | "entwurf_2_voraussichtlich" | "entwurf_3";
|
||||||
flaeche_ha?: number;
|
flaeche_ha?: number;
|
||||||
anlagen_geplant?: number;
|
anlagen_geplant?: number;
|
||||||
hoehe_max_m?: number;
|
hoehe_max_m?: number;
|
||||||
|
|||||||
Reference in New Issue
Block a user