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", "color": "#00f",
"width": "8" "width": "8"
} }
] ],
} "allowMove": true
}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -200,6 +200,7 @@
"anchor": "center" "anchor": "center"
} }
], ],
"allowMove": false,
"lineRendering": [ "lineRendering": [
{ {
"width": "4", "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)) { if (!Constants.priviliged_layers.find((x) => x == json.id)) {
context.err( context.err(
"Layer " + "Layer " +