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",
|
"type": "nonbinaryFlag",
|
||||||
"bezirk": 3,
|
"bezirk": 3,
|
||||||
"comment": "existiert noch nicht",
|
"comment": "existiert noch nicht",
|
||||||
|
"hidden": true,
|
||||||
"sources": [
|
"sources": [
|
||||||
{
|
{
|
||||||
"type": "proposal",
|
"type": "proposal",
|
||||||
"url": "https://www.ggg.at/2023/09/29/exklusiv-wien-bekommt-seinen-ersten-nonbinary-zebrastreifen/",
|
"url": "https://www.ggg.at/2023/09/29/exklusiv-wien-bekommt-seinen-ersten-nonbinary-zebrastreifen/",
|
||||||
"date": "2023-09-29"
|
"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": {
|
"geosource": {
|
||||||
|
|
|
@ -116,6 +116,9 @@
|
||||||
"comment": {
|
"comment": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"hidden": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"officialName": {
|
"officialName": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "The name used in the documents by the City of Vienna"
|
"description": "The name used in the documents by the City of Vienna"
|
||||||
|
|
|
@ -34,6 +34,7 @@ export interface Crossing {
|
||||||
name: string
|
name: string
|
||||||
bezirk?: number
|
bezirk?: number
|
||||||
comment?: string
|
comment?: string
|
||||||
|
hidden?: boolean
|
||||||
officialName?: string
|
officialName?: string
|
||||||
set?: string
|
set?: string
|
||||||
type: FlagType
|
type: FlagType
|
||||||
|
|
|
@ -14,6 +14,7 @@ export interface FeatureProperties {
|
||||||
|
|
||||||
export function loadData(data: Crossing[], vectorSource: VectorSource): void {
|
export function loadData(data: Crossing[], vectorSource: VectorSource): void {
|
||||||
console.info(data)
|
console.info(data)
|
||||||
|
data = data.filter(c => typeof c.hidden === "undefined" || !c.hidden)
|
||||||
data.sort((a, b) => {
|
data.sort((a, b) => {
|
||||||
/*
|
/*
|
||||||
put trans flag on top (so they are not covered,
|
put trans flag on top (so they are not covered,
|
||||||
|
|
|
@ -3,8 +3,6 @@ import {loadData} from "./features";
|
||||||
import {Crossing} from "../interfaces";
|
import {Crossing} from "../interfaces";
|
||||||
|
|
||||||
export function loadAllData(vectorSource: VectorSource): void {
|
export function loadAllData(vectorSource: VectorSource): void {
|
||||||
// @ts-ignore
|
|
||||||
|
|
||||||
const imports = [
|
const imports = [
|
||||||
import("../data/Wien.json?inline"),
|
import("../data/Wien.json?inline"),
|
||||||
import("../data/Oberösterreich.json?inline"),
|
import("../data/Oberösterreich.json?inline"),
|
||||||
|
|
Loading…
Reference in a new issue