diff --git a/assets/layers/artwork/artwork.json b/assets/layers/artwork/artwork.json index 013e2e84c..8b64c6525 100644 --- a/assets/layers/artwork/artwork.json +++ b/assets/layers/artwork/artwork.json @@ -889,6 +889,6 @@ }, "allowMove": { "enableRelocation": false, - "enableImproveAccuraccy": true + "enableImproveAccuracy": true } } diff --git a/assets/layers/bench/bench.json b/assets/layers/bench/bench.json index 6fffdaa2b..58c29d93d 100644 --- a/assets/layers/bench/bench.json +++ b/assets/layers/bench/bench.json @@ -1215,6 +1215,6 @@ }, "allowMove": { "enableRelocation": false, - "enableImproveAccuraccy": true + "enableImproveAccuracy": true } } diff --git a/assets/layers/bicycle_tube_vending_machine/bicycle_tube_vending_machine.json b/assets/layers/bicycle_tube_vending_machine/bicycle_tube_vending_machine.json index 789002873..01effe096 100644 --- a/assets/layers/bicycle_tube_vending_machine/bicycle_tube_vending_machine.json +++ b/assets/layers/bicycle_tube_vending_machine/bicycle_tube_vending_machine.json @@ -465,6 +465,6 @@ }, "allowMove": { "enableRelocation": false, - "enableImproveAccuraccy": true + "enableImproveAccuracy": true } } diff --git a/assets/layers/bike_cleaning/bike_cleaning.json b/assets/layers/bike_cleaning/bike_cleaning.json index 5c165ebb7..fcee4ad88 100644 --- a/assets/layers/bike_cleaning/bike_cleaning.json +++ b/assets/layers/bike_cleaning/bike_cleaning.json @@ -294,6 +294,6 @@ }, "allowMove": { "enableRelocation": false, - "enableImproveAccuraccy": true + "enableImproveAccuracy": true } } diff --git a/assets/layers/bike_repair_station/bike_repair_station.json b/assets/layers/bike_repair_station/bike_repair_station.json index b5ee06a62..b9f5f8ccf 100644 --- a/assets/layers/bike_repair_station/bike_repair_station.json +++ b/assets/layers/bike_repair_station/bike_repair_station.json @@ -1132,6 +1132,6 @@ }, "allowMove": { "enableRelocation": false, - "enableImproveAccuraccy": true + "enableImproveAccuracy": true } } diff --git a/assets/layers/binocular/binocular.json b/assets/layers/binocular/binocular.json index 574298c92..c01bdb7ca 100644 --- a/assets/layers/binocular/binocular.json +++ b/assets/layers/binocular/binocular.json @@ -191,6 +191,6 @@ }, "allowMove": { "enableRelocation": false, - "enableImproveAccuraccy": true + "enableImproveAccuracy": true } } diff --git a/assets/layers/drinking_water/drinking_water.json b/assets/layers/drinking_water/drinking_water.json index f70d1e089..8862186ee 100644 --- a/assets/layers/drinking_water/drinking_water.json +++ b/assets/layers/drinking_water/drinking_water.json @@ -545,6 +545,6 @@ }, "allowMove": { "enableRelocation": false, - "enableImproveAccuraccy": true + "enableImproveAccuracy": true } } diff --git a/assets/layers/information_board/information_board.json b/assets/layers/information_board/information_board.json index 90ce2612b..15ad25528 100644 --- a/assets/layers/information_board/information_board.json +++ b/assets/layers/information_board/information_board.json @@ -98,6 +98,6 @@ }, "allowMove": { "enableRelocation": false, - "enableImproveAccuraccy": true + "enableImproveAccuracy": true } } diff --git a/assets/layers/map/map.json b/assets/layers/map/map.json index 1c68c68bc..fb6af5be9 100644 --- a/assets/layers/map/map.json +++ b/assets/layers/map/map.json @@ -422,6 +422,6 @@ }, "allowMove": { "enableRelocation": false, - "enableImproveAccuraccy": true + "enableImproveAccuracy": true } } diff --git a/assets/layers/observation_tower/observation_tower.json b/assets/layers/observation_tower/observation_tower.json index c3a0f3ce9..9f373d81b 100644 --- a/assets/layers/observation_tower/observation_tower.json +++ b/assets/layers/observation_tower/observation_tower.json @@ -358,7 +358,7 @@ ], "allowMove": { "enableRelocation": false, - "enableImproveAccuraccy": true + "enableImproveAccuracy": true }, "units": [ { diff --git a/assets/layers/picnic_table/picnic_table.json b/assets/layers/picnic_table/picnic_table.json index 170f2caf3..6485bbe14 100644 --- a/assets/layers/picnic_table/picnic_table.json +++ b/assets/layers/picnic_table/picnic_table.json @@ -162,6 +162,6 @@ }, "allowMove": { "enableRelocation": false, - "enableImproveAccuraccy": true + "enableImproveAccuracy": true } } diff --git a/assets/layers/tree_node/tree_node.json b/assets/layers/tree_node/tree_node.json index dace89738..b752b9e88 100644 --- a/assets/layers/tree_node/tree_node.json +++ b/assets/layers/tree_node/tree_node.json @@ -950,6 +950,6 @@ }, "allowMove": { "enableRelocation": false, - "enableImproveAccuraccy": true + "enableImproveAccuracy": true } } diff --git a/src/Models/ThemeConfig/Conversion/LegacyJsonConvert.ts b/src/Models/ThemeConfig/Conversion/LegacyJsonConvert.ts index a6e90ab0e..5f35dbb54 100644 --- a/src/Models/ThemeConfig/Conversion/LegacyJsonConvert.ts +++ b/src/Models/ThemeConfig/Conversion/LegacyJsonConvert.ts @@ -33,6 +33,12 @@ export class UpdateLegacyLayer extends DesugaringStep< delete config["overpassTags"] } + if(config.allowMove?.["enableImproveAccuraccy"]){ + // Fix common misspelling: 'accuracy' is often typo'ed as 'accuraCCy' + config.allowMove["enableImproveAccuracy"] = config.allowMove["enableImproveAccuraccy"] + delete config.allowMove["enableImproveAccuraccy"] + } + for (const preset of config.presets ?? []) { const preciseInput = preset["preciseInput"] if (typeof preciseInput === "boolean") {