1
0
Fork 0
mirror of https://github.com/Findus23/RainbowRoad.git synced 2024-09-16 12:33:51 +02:00

hide binary flag crossing until there is more information

This commit is contained in:
Lukas Winkler 2024-08-10 15:11:39 +02:00
parent e342fb00fe
commit fd272aadd7
Signed by: lukas
GPG key ID: 54DE4D798D244853
5 changed files with 10 additions and 2 deletions

View file

@ -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": {

View file

@ -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"

View file

@ -34,6 +34,7 @@ export interface Crossing {
name: string
bezirk?: number
comment?: string
hidden?: boolean
officialName?: string
set?: string
type: FlagType

View file

@ -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,

View file

@ -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"),