Merge branch 'develop' of github.com:pietervdvn/MapComplete into develop

This commit is contained in:
Pieter Vander Vennet 2021-10-19 03:01:04 +02:00
commit e9cc705a12
31 changed files with 1005 additions and 974 deletions

View file

@ -62,6 +62,9 @@ export default class TagRenderingConfig {
this.render = Translations.T(json.render, context + ".render"); this.render = Translations.T(json.render, context + ".render");
this.question = Translations.T(json.question, context + ".question"); this.question = Translations.T(json.question, context + ".question");
this.roaming = json.roaming ?? false; this.roaming = json.roaming ?? false;
if(this.roaming){
console.warn("Deprecation notice: roaming renderings will be scrapped.", this.id, context)
}
const condition = TagUtils.Tag(json.condition ?? {"and": []}, `${context}.condition`); const condition = TagUtils.Tag(json.condition ?? {"and": []}, `${context}.condition`);
if (this.roaming && conditionIfRoaming !== undefined) { if (this.roaming && conditionIfRoaming !== undefined) {
this.condition = new And([condition, conditionIfRoaming]); this.condition = new And([condition, conditionIfRoaming]);

View file

@ -79,16 +79,13 @@
] ]
}, },
"then": { "then": {
"render": "./assets/layers/bike_cleaning/bike_cleaning_icon.svg", "render": "./assets/layers/bike_cleaning/bike_cleaning_icon.svg"
"roaming": true }
},
"badge": true
} }
], ],
"titleIcons": [ "titleIcons": [
{ {
"render": "<img src='./assets/layers/bike_cleaning/bike_cleaning_icon.svg'/>", "render": "<img src='./assets/layers/bike_cleaning/bike_cleaning_icon.svg'/>"
"roaming": true
} }
], ],
"tagRenderings": [ "tagRenderings": [
@ -118,7 +115,6 @@
"then": "The cleaning service has a fee" "then": "The cleaning service has a fee"
} }
], ],
"roaming": true,
"id": "bike_cleaning-service:bicycle:cleaning:charge" "id": "bike_cleaning-service:bicycle:cleaning:charge"
}, },
{ {
@ -146,7 +142,6 @@
"then": "The cleaning service has a fee" "then": "The cleaning service has a fee"
} }
], ],
"roaming": false,
"id": "bike_cleaning-charge" "id": "bike_cleaning-charge"
} }
], ],

View file

@ -129,8 +129,7 @@
"titleIcons": [ "titleIcons": [
{ {
"render": "<a href='https://fietsambassade.gent.be/' target='_blank'><img src='./assets/themes/cyclofix/fietsambassade_gent_logo_small.svg'/></a>", "render": "<a href='https://fietsambassade.gent.be/' target='_blank'><img src='./assets/themes/cyclofix/fietsambassade_gent_logo_small.svg'/></a>",
"condition": "operator=De Fietsambassade Gent", "condition": "operator=De Fietsambassade Gent"
"roaming": true
}, },
"defaults" "defaults"
], ],

View file

@ -174,6 +174,10 @@
"condition": "service:bicycle:diy=yes", "condition": "service:bicycle:diy=yes",
"render": "<img src='./assets/layers/bike_shop/tools.svg'/>" "render": "<img src='./assets/layers/bike_shop/tools.svg'/>"
}, },
{ "condition": "service:bicycle:cleaning=yes",
"render": "<img src='./assets/layers/bike_cleaning/bike_cleaning_icon.svg'/>"
},
"defaults" "defaults"
], ],
"description": { "description": {
@ -659,6 +663,32 @@
} }
} }
] ]
},
{
"question": "How much does it cost to use the cleaning service?",
"render": "Using the cleaning service costs {charge}",
"freeform": {
"key": "service:bicycle:cleaning:charge",
"addExtraTags": [
"service:bicycle:cleaning:fee=yes"
]
},
"mappings": [
{
"if": "service:bicycle:cleaning:fee=no&service:bicycle:cleaning:charge=",
"then": "The cleaning service is free to use"
},
{
"if": "service:bicycle:cleaning:fee=no&",
"then": "Free to use",
"hideInAnswer": true
},
{
"if": "service:bicycle:cleaning:fee=yes",
"then": "The cleaning service has a fee"
}
],
"id": "bike_cleaning-service:bicycle:cleaning:charge"
} }
], ],
"presets": [ "presets": [
@ -700,6 +730,17 @@
"if": "service:bicycle:pump=yes", "if": "service:bicycle:pump=yes",
"then": "circle:#e2783d;./assets/layers/bike_repair_station/pump.svg", "then": "circle:#e2783d;./assets/layers/bike_repair_station/pump.svg",
"badge": true "badge": true
},
{
"if": {
"and": [
"service:bicycle:cleaning~*"
]
},
"then": {
"render": "./assets/layers/bike_cleaning/bike_cleaning_icon.svg"
},
"badge": true
} }
], ],
"width": { "width": {

View file

@ -58,6 +58,5 @@
"bench", "bench",
"bench_at_pt", "bench_at_pt",
"picnic_table" "picnic_table"
], ]
"roamingRenderings": []
} }

View file

@ -42,7 +42,6 @@
"startLon": 0, "startLon": 0,
"startZoom": 1, "startZoom": 1,
"widenFactor": 1.5, "widenFactor": 1.5,
"roamingRenderings": [],
"layers": [ "layers": [
{ {
"builtin": "bicycle_library", "builtin": "bicycle_library",

View file

@ -40,7 +40,6 @@
"startLon": 0, "startLon": 0,
"startZoom": 1, "startZoom": 1,
"widenFactor": 1, "widenFactor": 1,
"roamingRenderings": [],
"layers": [ "layers": [
"public_bookcase" "public_bookcase"
] ]

View file

@ -343,263 +343,265 @@
}, },
"viewpoint" "viewpoint"
], ],
"roamingRenderings": [ "overrideAll": {
{ "tagRenderings+": [
"#": "Access tag", {
"condition": { "id": "Access tag",
"and": [ "condition": {
"tourism!~viewpoint" "and": [
"tourism!~viewpoint"
]
},
"render": {
"nl": "De toegankelijkheid van dit gebied is: {access:description}"
},
"question": {
"nl": "Is dit gebied toegankelijk?"
},
"freeform": {
"key": "access:description",
"addExtraTags": [
"access="
]
},
"mappings": [
{
"if": {
"and": [
"access:description=",
"access=",
"leisure=park"
]
},
"then": {
"nl": "Dit gebied is vrij toegankelijk"
},
"hideInAnswer": true
},
{
"if": {
"and": [
"access:description=",
"access=yes",
"fee="
]
},
"then": {
"nl": "Vrij toegankelijk"
}
},
{
"if": {
"and": [
"access:description=",
"access=no",
"fee="
]
},
"then": {
"nl": "Niet toegankelijk"
}
},
{
"if": {
"and": [
"access:description=",
"access=private",
"fee="
]
},
"then": {
"nl": "Niet toegankelijk, want privégebied"
}
},
{
"if": {
"and": [
"access:description=",
"access=permissive",
"fee="
]
},
"then": {
"nl": "Toegankelijk, ondanks dat het privegebied is"
}
},
{
"if": {
"and": [
"access:description=",
"access=guided",
"fee="
]
},
"then": {
"nl": "Enkel toegankelijk met een gids of tijdens een activiteit"
}
},
{
"if": {
"and": [
"access:description=",
"access=yes",
"fee=yes"
]
},
"then": {
"nl": "Toegankelijk mits betaling"
}
}
] ]
}, },
"render": { {
"nl": "De toegankelijkheid van dit gebied is: {access:description}" "id": "Operator tag",
}, "render": {
"question": { "nl": "Beheer door {operator}"
"nl": "Is dit gebied toegankelijk?"
},
"freeform": {
"key": "access:description",
"addExtraTags": [
"access="
]
},
"mappings": [
{
"if": {
"and": [
"access:description=",
"access=",
"leisure=park"
]
},
"then": {
"nl": "Dit gebied is vrij toegankelijk"
},
"hideInAnswer": true
}, },
{ "question": {
"if": { "nl": "Wie beheert dit gebied?"
"and": [
"access:description=",
"access=yes",
"fee="
]
},
"then": {
"nl": "Vrij toegankelijk"
}
}, },
{ "freeform": {
"if": { "key": "operator"
"and": [
"access:description=",
"access=no",
"fee="
]
},
"then": {
"nl": "Niet toegankelijk"
}
}, },
{ "mappings": [
"if": { {
"and": [ "if": {
"access:description=", "and": [
"access=private", "leisure=park",
"fee=" "operator="
] ]
},
"then": "Beheer door de gemeente",
"hideInAnswer": true
}, },
"then": { {
"nl": "Niet toegankelijk, want privégebied" "if": {
} "and": [
}, "operator=Natuurpunt"
{ ]
"if": { },
"and": [ "then": {
"access:description=", "nl": "<img src=\"./assets/themes/buurtnatuur/Natuurpunt.jpg\" style=\"width:1.5em\">Dit gebied wordt beheerd door Natuurpunt"
"access=permissive", }
"fee="
]
}, },
"then": { {
"nl": "Toegankelijk, ondanks dat het privegebied is" "if": {
} "and": [
}, "operator~(n|N)atuurpunt.*"
{ ]
"if": { },
"and": [ "then": {
"access:description=", "nl": "<img src=\"./assets/themes/buurtnatuur/Natuurpunt.jpg\" style=\"width:1.5em\">Dit gebied wordt beheerd door {operator}"
"access=guided", },
"fee=" "hideInAnswer": true
]
}, },
"then": { {
"nl": "Enkel toegankelijk met een gids of tijdens een activiteit" "if": {
} "and": [
}, "operator=Agentschap Natuur en Bos"
{ ]
"if": { },
"and": [ "then": {
"access:description=", "nl": "<img src=\"./assets/themes/buurtnatuur/ANB.jpg\" style=\"width:1.5em\">Dit gebied wordt beheerd door het Agentschap Natuur en Bos"
"access=yes", }
"fee=yes"
]
}, },
"then": { {
"nl": "Toegankelijk mits betaling" "if": {
"and": [
"operator:type=private"
]
},
"then": "Beheer door een privépersoon",
"hideInAnswer": true
},
{
"if": {
"and": [
"operator:type=private",
"operator="
]
},
"then": "Beheer door een privépersoon"
} }
],
"condition": {
"and": [
"leisure!~park",
"tourism!~viewpoint"
]
} }
]
},
{
"#": "Operator tag",
"render": {
"nl": "Beheer door {operator}"
}, },
"question": { {
"nl": "Wie beheert dit gebied?" "id": "Non-editable description {description}",
}, "render": {
"freeform": { "nl": "Extra info: <i>{description}</i>"
"key": "operator"
},
"mappings": [
{
"if": {
"and": [
"leisure=park",
"operator="
]
},
"then": "Beheer door de gemeente",
"hideInAnswer": true
}, },
{ "freeform": {
"if": { "key": "description"
"and": [
"operator=Natuurpunt"
]
},
"then": {
"nl": "<img src=\"./assets/themes/buurtnatuur/Natuurpunt.jpg\" style=\"width:1.5em\">Dit gebied wordt beheerd door Natuurpunt"
}
},
{
"if": {
"and": [
"operator~(n|N)atuurpunt.*"
]
},
"then": {
"nl": "<img src=\"./assets/themes/buurtnatuur/Natuurpunt.jpg\" style=\"width:1.5em\">Dit gebied wordt beheerd door {operator}"
},
"hideInAnswer": true
},
{
"if": {
"and": [
"operator=Agentschap Natuur en Bos"
]
},
"then": {
"nl": "<img src=\"./assets/themes/buurtnatuur/ANB.jpg\" style=\"width:1.5em\">Dit gebied wordt beheerd door het Agentschap Natuur en Bos"
}
},
{
"if": {
"and": [
"operator:type=private"
]
},
"then": "Beheer door een privépersoon",
"hideInAnswer": true
},
{
"if": {
"and": [
"operator:type=private",
"operator="
]
},
"then": "Beheer door een privépersoon"
} }
],
"condition": {
"and": [
"leisure!~park",
"tourism!~viewpoint"
]
}
},
{
"#": "Non-editable description {description}",
"render": {
"nl": "Extra info: <i>{description}</i>"
}, },
"freeform": { {
"key": "description" "id": "Editable description {description:0}",
} "question": "Is er extra info die je kwijt wil?<br/><span class='subtle'>De <i>naam</i> van het gebied wordt in de volgende vraag gesteld</span>",
}, "render": {
{ "nl": "Extra info via buurtnatuur.be: <i>{description:0}</i>"
"#": "Editable description {description:0}", },
"question": "Is er extra info die je kwijt wil?<br/><span class='subtle'>De <i>naam</i> van het gebied wordt in de volgende vraag gesteld</span>", "freeform": {
"render": { "key": "description:0"
"nl": "Extra info via buurtnatuur.be: <i>{description:0}</i>"
},
"freeform": {
"key": "description:0"
}
},
{
"#": "Name:nl-tag",
"render": {
"nl": "Dit gebied heet {name:nl}"
},
"question": {
"nl": "Wat is de Nederlandstalige naam van dit gebied?"
},
"freeform": {
"key": "name:nl"
},
"condition": {
"and": [
"name:nl~*",
"viewpoint!~tourism"
]
}
},
{
"#": "Name tag",
"render": {
"nl": "Dit gebied heet {name}"
},
"question": {
"nl": "Wat is de naam van dit gebied?"
},
"freeform": {
"key": "name",
"addExtraTags": [
"noname="
]
},
"condition": {
"and": [
"name:nl=",
"tourism!~viewpoint"
]
},
"mappings": [
{
"if": {
"and": [
"noname=yes",
"name="
]
},
"then": {
"nl": "Dit gebied heeft geen naam"
}
} }
] },
} {
] "id": "Name:nl-tag",
"render": {
"nl": "Dit gebied heet {name:nl}"
},
"question": {
"nl": "Wat is de Nederlandstalige naam van dit gebied?"
},
"freeform": {
"key": "name:nl"
},
"condition": {
"and": [
"name:nl~*",
"viewpoint!~tourism"
]
}
},
{
"id": "Name tag",
"render": {
"nl": "Dit gebied heet {name}"
},
"question": {
"nl": "Wat is de naam van dit gebied?"
},
"freeform": {
"key": "name",
"addExtraTags": [
"noname="
]
},
"condition": {
"and": [
"name:nl=",
"tourism!~viewpoint"
]
},
"mappings": [
{
"if": {
"and": [
"noname=yes",
"name="
]
},
"then": {
"nl": "Dit gebied heeft geen naam"
}
}
]
}
]
}
} }

View file

@ -1078,66 +1078,70 @@
] ]
} }
], ],
"roamingRenderings": [ "overrideAll": {
{ "tagRenderings+": [
"render": { {
"en": "This place is operated by {operator}", "id": "operator",
"ja": "この場所は{operator}によって運営されます", "render": {
"it": "Questo luogo è gestito da {operator}", "en": "This place is operated by {operator}",
"fr": "Ce site est exploité par {operator}", "ja": "この場所は{operator}によって運営されます",
"de": "Dieser Ort wird betrieben von {operator}" "it": "Questo luogo è gestito da {operator}",
}, "fr": "Ce site est exploité par {operator}",
"question": { "de": "Dieser Ort wird betrieben von {operator}"
"en": "Who operates this place?",
"ja": "この店は誰が経営しているんですか?",
"it": "Chi gestisce questo luogo?",
"fr": "Qui est lexploitant du site ?",
"de": "Wer betreibt diesen Ort?"
},
"freeform": {
"key": "operator"
}
},
{
"question": {
"en": "Does this place have a power supply?",
"ja": "この場所に電源はありますか?",
"it": "Questo luogo fornisce corrente elettrica?",
"fr": "Ce site a-til une source délectricité ?",
"de": "Hat dieser Ort eine Stromversorgung?"
},
"mappings": [
{
"if": {
"and": [
"power_supply=yes"
]
},
"then": {
"en": "This place has a power supply",
"id": "Tempat ini memiliki catu daya",
"ja": "この場所には電源があります",
"it": "Questo luogo fornisce corrente elettrica",
"fr": "Ce site a une source dalimentation",
"de": "Dieser Ort hat eine Stromversorgung"
}
}, },
{ "question": {
"if": { "en": "Who operates this place?",
"and": [ "ja": "この店は誰が経営しているんですか?",
"power_supply=no" "it": "Chi gestisce questo luogo?",
] "fr": "Qui est lexploitant du site ?",
}, "de": "Wer betreibt diesen Ort?"
"then": { },
"en": "This place does not have power supply", "freeform": {
"id": "Tempat ini tidak memiliki sumber listrik", "key": "operator"
"ja": "この場所には電源がありません",
"it": "Questo luogo non fornisce corrente elettrica",
"fr": "Ce site na pas de source dalimentation",
"de": "Dieser Ort hat keine Stromversorgung"
}
} }
] },
} {
] "id": "power_supply",
"question": {
"en": "Does this place have a power supply?",
"ja": "この場所に電源はありますか?",
"it": "Questo luogo fornisce corrente elettrica?",
"fr": "Ce site a-til une source délectricité ?",
"de": "Hat dieser Ort eine Stromversorgung?"
},
"mappings": [
{
"if": {
"and": [
"power_supply=yes"
]
},
"then": {
"en": "This place has a power supply",
"id": "Tempat ini memiliki catu daya",
"ja": "この場所には電源があります",
"it": "Questo luogo fornisce corrente elettrica",
"fr": "Ce site a une source dalimentation",
"de": "Dieser Ort hat eine Stromversorgung"
}
},
{
"if": {
"and": [
"power_supply=no"
]
},
"then": {
"en": "This place does not have power supply",
"id": "Tempat ini tidak memiliki sumber listrik",
"ja": "この場所には電源がありません",
"it": "Questo luogo non fornisce corrente elettrica",
"fr": "Ce site na pas de source dalimentation",
"de": "Dieser Ort hat keine Stromversorgung"
}
}
]
}
]
}
} }

View file

@ -46,6 +46,5 @@
"defaultBackgroundId": "CartoDB.Voyager", "defaultBackgroundId": "CartoDB.Voyager",
"layers": [ "layers": [
"charging_station" "charging_station"
], ]
"roamingRenderings": []
} }

File diff suppressed because it is too large Load diff

View file

@ -43,105 +43,6 @@
"maxZoom": 12, "maxZoom": 12,
"minNeededElements": 200 "minNeededElements": 200
}, },
"roamingRenderings": [
{
"question": {
"nl": "Is deze straat een fietsstraat?",
"en": "Is this street a cyclestreet?",
"ja": "この通りはcyclestreetですか?",
"nb_NO": "Er denne gaten en sykkelvei?",
"de": "Ist diese Straße eine Fahrradstraße?"
},
"mappings": [
{
"if": {
"and": [
"cyclestreet=yes",
"maxspeed=30",
"overtaking:motor_vehicle=no",
"proposed:cyclestreet="
]
},
"then": {
"nl": "Deze straat is een fietsstraat (en dus zone 30)",
"en": "This street is a cyclestreet (and has a speed limit of 30 km/h)",
"ja": "cyclestreet(最高速度は30km/h)",
"nb_NO": "Denne gaten er en sykkelvei (og har en fartsgrense på 30 km/t)",
"de": "Diese Straße ist eine Fahrradstraße (mit einer Geschwindigkeitsbegrenzung von 30 km/h)"
}
},
{
"if": {
"and": [
"cyclestreet=yes",
"proposed:cyclestreet="
]
},
"then": {
"nl": "Deze straat i een fietsstraat",
"en": "This street is a cyclestreet",
"ja": "この通りはcyclestreetだ",
"nb_NO": "Denne gaten er en sykkelvei",
"de": "Diese Straße ist eine Fahrradstraße"
},
"hideInAnswer": true
},
{
"if": {
"and": [
"cyclestreet=",
"proposed:cyclestreet=yes"
]
},
"then": {
"nl": "Deze straat wordt binnenkort een fietsstraat",
"en": "This street will become a cyclstreet soon",
"ja": "この通りはまもなくcyclstreetになるだろう",
"nb_NO": "Denne gaten vil bli sykkelvei ganske snart",
"de": "Diese Straße wird bald eine Fahrradstraße sein"
}
},
{
"if": {
"and": [
"cyclestreet=",
"proposed:cyclestreet=",
"overtaking:motor_vehicle="
]
},
"then": {
"nl": "Deze straat is geen fietsstraat",
"en": "This street is not a cyclestreet",
"ja": "この通りはcyclestreetではない",
"nb_NO": "Denne gaten er ikke en sykkelvei",
"it": "Questa strada non è una strada ciclabile",
"de": "Diese Straße ist keine Fahrradstraße"
}
}
]
},
{
"question": {
"nl": "Wanneer wordt deze straat een fietsstraat?",
"en": "When will this street become a cyclestreet?",
"ja": "この通りはいつcyclestreetになるんですか?",
"it": "Questa strada diventerà una strada ciclabile quando?",
"de": "Wann wird diese Straße eine Fahrradstraße?"
},
"render": {
"nl": "Deze straat wordt fietsstraat op {cyclestreet:start_date}",
"en": "This street will become a cyclestreet at {cyclestreet:start_date}",
"ja": "この通りは{cyclestreet:start_date}に、cyclestreetになります",
"it": "Questa strada diventerà una strada ciclabile dal {cyclestreet:start_date}",
"de": "Diese Straße wird am {cyclestreet:start_date} zu einer Fahrradstraße"
},
"condition": "proposed:cyclestreet=yes",
"freeform": {
"type": "date",
"key": "cyclestreet:start_date"
}
}
],
"layers": [ "layers": [
{ {
"id": "fietsstraat", "id": "fietsstraat",
@ -304,6 +205,105 @@
} }
], ],
"overrideAll": { "overrideAll": {
"allowSplit": true "allowSplit": true,
"tagRenderings+": [
{"id": "is_cyclestreet",
"question": {
"nl": "Is deze straat een fietsstraat?",
"en": "Is this street a cyclestreet?",
"ja": "この通りはcyclestreetですか?",
"nb_NO": "Er denne gaten en sykkelvei?",
"de": "Ist diese Straße eine Fahrradstraße?"
},
"mappings": [
{
"if": {
"and": [
"cyclestreet=yes",
"maxspeed=30",
"overtaking:motor_vehicle=no",
"proposed:cyclestreet="
]
},
"then": {
"nl": "Deze straat is een fietsstraat (en dus zone 30)",
"en": "This street is a cyclestreet (and has a speed limit of 30 km/h)",
"ja": "cyclestreet(最高速度は30km/h)",
"nb_NO": "Denne gaten er en sykkelvei (og har en fartsgrense på 30 km/t)",
"de": "Diese Straße ist eine Fahrradstraße (mit einer Geschwindigkeitsbegrenzung von 30 km/h)"
}
},
{
"if": {
"and": [
"cyclestreet=yes",
"proposed:cyclestreet="
]
},
"then": {
"nl": "Deze straat i een fietsstraat",
"en": "This street is a cyclestreet",
"ja": "この通りはcyclestreetだ",
"nb_NO": "Denne gaten er en sykkelvei",
"de": "Diese Straße ist eine Fahrradstraße"
},
"hideInAnswer": true
},
{
"if": {
"and": [
"cyclestreet=",
"proposed:cyclestreet=yes"
]
},
"then": {
"nl": "Deze straat wordt binnenkort een fietsstraat",
"en": "This street will become a cyclstreet soon",
"ja": "この通りはまもなくcyclstreetになるだろう",
"nb_NO": "Denne gaten vil bli sykkelvei ganske snart",
"de": "Diese Straße wird bald eine Fahrradstraße sein"
}
},
{
"if": {
"and": [
"cyclestreet=",
"proposed:cyclestreet=",
"overtaking:motor_vehicle="
]
},
"then": {
"nl": "Deze straat is geen fietsstraat",
"en": "This street is not a cyclestreet",
"ja": "この通りはcyclestreetではない",
"nb_NO": "Denne gaten er ikke en sykkelvei",
"it": "Questa strada non è una strada ciclabile",
"de": "Diese Straße ist keine Fahrradstraße"
}
}
]
},
{"id": "future_cyclestreet",
"question": {
"nl": "Wanneer wordt deze straat een fietsstraat?",
"en": "When will this street become a cyclestreet?",
"ja": "この通りはいつcyclestreetになるんですか?",
"it": "Questa strada diventerà una strada ciclabile quando?",
"de": "Wann wird diese Straße eine Fahrradstraße?"
},
"render": {
"nl": "Deze straat wordt fietsstraat op {cyclestreet:start_date}",
"en": "This street will become a cyclestreet at {cyclestreet:start_date}",
"ja": "この通りは{cyclestreet:start_date}に、cyclestreetになります",
"it": "Questa strada diventerà una strada ciclabile dal {cyclestreet:start_date}",
"de": "Diese Straße wird am {cyclestreet:start_date} zu einer Fahrradstraße"
},
"condition": "proposed:cyclestreet=yes",
"freeform": {
"type": "date",
"key": "cyclestreet:start_date"
}
}
]
} }
} }

View file

@ -57,6 +57,5 @@
"bike_themed_object", "bike_themed_object",
"bike_cleaning", "bike_cleaning",
"bike_parking" "bike_parking"
], ]
"roamingRenderings": []
} }

View file

@ -40,6 +40,5 @@
"widenFactor": 2, "widenFactor": 2,
"layers": [ "layers": [
"drinking_water" "drinking_water"
], ]
"roamingRenderings": []
} }

View file

@ -456,6 +456,5 @@
], ],
"wayHandling": 1 "wayHandling": 1
} }
], ]
"roamingRenderings": []
} }

View file

@ -54,6 +54,5 @@
"filter": null "filter": null
} }
} }
], ]
"roamingRenderings": []
} }

View file

@ -172,6 +172,5 @@
} }
] ]
} }
], ]
"roamingRenderings": []
} }

View file

@ -201,6 +201,5 @@
} }
], ],
"hideFromOverview": true, "hideFromOverview": true,
"roamingRenderings": [],
"defaultBackgroundId": "AGIVFlandersGRB" "defaultBackgroundId": "AGIVFlandersGRB"
} }

View file

@ -40,6 +40,5 @@
"socialImage": "", "socialImage": "",
"layers": [ "layers": [
"map" "map"
], ]
"roamingRenderings": []
} }

View file

@ -26,6 +26,5 @@
"map", "map",
"information_board", "information_board",
"nature_reserve" "nature_reserve"
], ]
"roamingRenderings": []
} }

View file

@ -26,6 +26,5 @@
"socialImage": "", "socialImage": "",
"layers": [ "layers": [
"parking" "parking"
], ]
"roamingRenderings": []
} }

View file

@ -46,6 +46,5 @@
"startZoom": 16, "startZoom": 16,
"widenFactor": 1.2, "widenFactor": 1.2,
"overpassMaxZoom": 0, "overpassMaxZoom": 0,
"layers": [], "layers": []
"roamingRenderings": []
} }

View file

@ -23,6 +23,5 @@
"socialImage": "", "socialImage": "",
"layers": [ "layers": [
"play_forest" "play_forest"
], ]
"roamingRenderings": []
} }

View file

@ -42,6 +42,5 @@
"socialImage": "", "socialImage": "",
"layers": [ "layers": [
"playground" "playground"
], ]
"roamingRenderings": []
} }

View file

@ -41,6 +41,5 @@
"socialImage": "", "socialImage": "",
"layers": [ "layers": [
"sport_pitch" "sport_pitch"
], ]
"roamingRenderings": []
} }

View file

@ -43,6 +43,5 @@
"layers": [ "layers": [
"direction", "direction",
"surveillance_camera" "surveillance_camera"
], ]
"roamingRenderings": []
} }

View file

@ -55,6 +55,5 @@
"layers": [ "layers": [
"tree_node" "tree_node"
], ],
"roamingRenderings": [],
"defaultBackgroundId": "AGIV" "defaultBackgroundId": "AGIV"
} }

View file

@ -274,6 +274,5 @@
"render": "0" "render": "0"
} }
} }
], ]
"roamingRenderings": []
} }

View file

@ -33,6 +33,5 @@
"minzoom": 12 "minzoom": 12
} }
} }
], ]
"roamingRenderings": []
} }

View file

@ -118,6 +118,9 @@ class LayerOverviewUtils {
if (themeFile["units"] !== undefined) { if (themeFile["units"] !== undefined) {
themeErrorCount.push("The theme " + themeFile.id + " has units defined - these should be defined on the layer instead. (Hint: use overrideAll: { '+units': ... }) ") themeErrorCount.push("The theme " + themeFile.id + " has units defined - these should be defined on the layer instead. (Hint: use overrideAll: { '+units': ... }) ")
} }
if (themeFile["roamingRenderings"] !== undefined) {
themeErrorCount.push("Theme " + themeFile.id + " contains an old 'roamingRenderings'. Use an 'overrideAll' instead")
}
for (const layer of themeFile.layers) { for (const layer of themeFile.layers) {
if (typeof layer === "string") { if (typeof layer === "string") {
if (!knownLayerIds.has(layer)) { if (!knownLayerIds.has(layer)) {
@ -213,4 +216,4 @@ class LayerOverviewUtils {
} }
} }
new LayerOverviewUtils().main(process.argv) new LayerOverviewUtils().main(process.argv)

View file

@ -46,6 +46,11 @@ for (const themeFile of themeFiles) {
// @ts-ignore // @ts-ignore
fixLayerConfig(layerConfig) fixLayerConfig(layerConfig)
} }
if(themeFile.parsed["roamingRenderings"] !== undefined && themeFile.parsed["roamingRenderings"].length == 0){
delete themeFile.parsed["roamingRenderings"]
}
writeFileSync(themeFile.path, JSON.stringify(themeFile.parsed, null, " ")) writeFileSync(themeFile.path, JSON.stringify(themeFile.parsed, null, " "))
} }
//*/ //*/