mirror of
https://github.com/Findus23/RainbowRoad.git
synced 2024-09-18 14:53:51 +02:00
hide binary flag crossing until there is more information
This commit is contained in:
parent
e342fb00fe
commit
fd272aadd7
5 changed files with 10 additions and 2 deletions
|
@ -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": {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -34,6 +34,7 @@ export interface Crossing {
|
|||
name: string
|
||||
bezirk?: number
|
||||
comment?: string
|
||||
hidden?: boolean
|
||||
officialName?: string
|
||||
set?: string
|
||||
type: FlagType
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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"),
|
||||
|
|
Loading…
Reference in a new issue