Themes: add 'allowMove' everywhere, make 'allowMove' obligated, see #2121

This commit is contained in:
Pieter Vander Vennet 2024-09-02 11:56:36 +02:00
parent 82e6b2af9b
commit 29d52e0fc6
13 changed files with 52 additions and 25 deletions

View file

@ -930,5 +930,6 @@
"color": "#00f",
"width": "8"
}
]
],
"allowMove": true
}

View file

@ -628,5 +628,9 @@
"color": "#00f",
"width": "8"
}
]
],
"allowMove": {
"enableImproveAccuracy": true,
"enableRelocation": false
}
}

View file

@ -63,10 +63,6 @@
"climbing_opportunity"
],
"override": {
"allowMove": {
"enableRelocation": false,
"enableImproveAccuracy": true
},
"+titleIcons": [
{
"id": "climbing_length",

View file

@ -123,7 +123,8 @@
}
}
],
"pointRendering": null
"pointRendering": null,
"allowMove": false
},
{
"id": "node_bicycle",
@ -324,7 +325,8 @@
"cycleways_and_roads"
]
}
]
],
"allowMove": false
},
{
"builtin": [

View file

@ -172,7 +172,8 @@
"color": "#0000ff",
"width": "10"
}
]
],
"allowMove": false
},
{
"id": "toekomstige_fietsstraat",
@ -290,7 +291,8 @@
"color": "#09f9dd",
"width": "5"
}
]
],
"allowMove": false
},
{
"id": "not_cyclestreets",
@ -410,7 +412,8 @@
"width": "5"
}
],
"isCounted": false
"isCounted": false,
"allowMove": false
}
],
"overrideAll": {

View file

@ -144,7 +144,8 @@
"fill": "no",
"dashArray": "8 8"
}
]
],
"allowMove": false
},
{
"id": "wrong_postal_code",
@ -163,7 +164,9 @@
"color": "#f00",
"width": 1
}
]
],
"allowMove": false
},
{
"id": "town_hall",
@ -233,7 +236,8 @@
],
"anchor": "center"
}
]
],
"allowMove": false
}
],
"overpassTimeout": 180,

View file

@ -196,7 +196,8 @@
},
"width": "9"
}
]
],
"allowMove": false
}
],
"overrideAll": {

View file

@ -115,7 +115,8 @@
{
"color": "green"
}
]
],
"allowMove": false
},
{
"builtin": [
@ -454,7 +455,11 @@
],
"lineRendering": [
{}
]
],
"allowMove": {
"enableImproveAccuracy": true,
"enableRelocation": false
}
}
]
}

View file

@ -196,7 +196,8 @@
{
"color": "#ff0"
}
]
],
"allowMove": false
},
{
"id": "all_streets",
@ -367,7 +368,9 @@
]
}
}
]
],
"allowMove": false
}
]
}

View file

@ -681,7 +681,12 @@
},
"width": "3"
}
]
],
"allowMove": {
"enableImproveAccuraccy": true,
"enableRelocation": false
}
},
"named_streets"
],

View file

@ -91,6 +91,7 @@
}
],
"pointRendering": null,
"allowMove": false,
"tagRenderings": [
{
"builtin": "survey_date",
@ -195,6 +196,7 @@
}
]
},
"allowMove": false,
"tagRenderings": [
{
"id": "node-rwn_ref",

View file

@ -200,6 +200,7 @@
"anchor": "center"
}
],
"allowMove": false,
"lineRendering": [
{
"width": "4",

View file

@ -141,7 +141,7 @@ export class PrevalidateLayer extends DesugaringStep<LayerConfigJson> {
}
}
if(json.allowMove === undefined){
if(json.allowMove === undefined && json.source["geoJson"] === undefined){
if (!Constants.priviliged_layers.find((x) => x == json.id)) {
context.err(
"Layer " +