diff --git a/data/Wien.json b/data/Wien.json index fa00c0b..d96f0be 100644 --- a/data/Wien.json +++ b/data/Wien.json @@ -1848,11 +1848,16 @@ "type": "nonbinaryFlag", "bezirk": 3, "comment": "existiert noch nicht", + "hidden": true, "sources": [ { "type": "proposal", "url": "https://www.ggg.at/2023/09/29/exklusiv-wien-bekommt-seinen-ersten-nonbinary-zebrastreifen/", "date": "2023-09-29" + },{ + "type": "proposal", + "url": "https://www.wien.gv.at/bezirke/landstrasse/politik/sitzungen/pdf/antrag-20230316-12.pdf", + "date": "2023-03-16" } ], "geosource": { diff --git a/data/schema.json b/data/schema.json index e02c6db..ce4c409 100644 --- a/data/schema.json +++ b/data/schema.json @@ -116,6 +116,9 @@ "comment": { "type": "string" }, + "hidden": { + "type": "boolean" + }, "officialName": { "type": "string", "description": "The name used in the documents by the City of Vienna" diff --git a/interfaces.ts b/interfaces.ts index 69327af..2f1eec4 100644 --- a/interfaces.ts +++ b/interfaces.ts @@ -34,6 +34,7 @@ export interface Crossing { name: string bezirk?: number comment?: string + hidden?: boolean officialName?: string set?: string type: FlagType diff --git a/src/features.ts b/src/features.ts index 71c5c3c..e6de0cf 100644 --- a/src/features.ts +++ b/src/features.ts @@ -14,6 +14,7 @@ export interface FeatureProperties { export function loadData(data: Crossing[], vectorSource: VectorSource): void { console.info(data) + data = data.filter(c => typeof c.hidden === "undefined" || !c.hidden) data.sort((a, b) => { /* put trans flag on top (so they are not covered, diff --git a/src/loadData.ts b/src/loadData.ts index 5ab4682..6a45149 100644 --- a/src/loadData.ts +++ b/src/loadData.ts @@ -3,8 +3,6 @@ import {loadData} from "./features"; import {Crossing} from "../interfaces"; export function loadAllData(vectorSource: VectorSource): void { - // @ts-ignore - const imports = [ import("../data/Wien.json?inline"), import("../data/Oberösterreich.json?inline"),