diff --git a/assets/layers/advertising/advertising.json b/assets/layers/advertising/advertising.json index bb902639d..93675138b 100644 --- a/assets/layers/advertising/advertising.json +++ b/assets/layers/advertising/advertising.json @@ -1867,5 +1867,6 @@ "enableImproveAccuracy": true, "enableRelocation": false }, - "enableMorePrivacy": true + "enableMorePrivacy": true, + "allowCopy": true } diff --git a/assets/layers/bench/bench.json b/assets/layers/bench/bench.json index 6f91d2dc8..5025fc062 100644 --- a/assets/layers/bench/bench.json +++ b/assets/layers/bench/bench.json @@ -1325,5 +1325,6 @@ "allowMove": { "enableRelocation": false, "enableImproveAccuracy": true - } + }, + "allowCopy": true } diff --git a/assets/layers/bike_parking/bike_parking.json b/assets/layers/bike_parking/bike_parking.json index 869e5018d..7b636b381 100644 --- a/assets/layers/bike_parking/bike_parking.json +++ b/assets/layers/bike_parking/bike_parking.json @@ -1224,5 +1224,6 @@ ] } } - ] + ], + "allowCopy": true } diff --git a/assets/layers/binocular/binocular.json b/assets/layers/binocular/binocular.json index 5c297823f..5870ca0b5 100644 --- a/assets/layers/binocular/binocular.json +++ b/assets/layers/binocular/binocular.json @@ -203,5 +203,6 @@ "allowMove": { "enableRelocation": false, "enableImproveAccuracy": true - } + }, + "allowCopy": true } diff --git a/assets/layers/charge_point/charge_point.json b/assets/layers/charge_point/charge_point.json index aa56bb38d..0ebb68ddd 100644 --- a/assets/layers/charge_point/charge_point.json +++ b/assets/layers/charge_point/charge_point.json @@ -107,5 +107,6 @@ "allowMove": { "enableImproveAccuracy": true, "enableRelocation": false - } + }, + "allowCopy": true } diff --git a/assets/layers/charging_station/charging_station.json b/assets/layers/charging_station/charging_station.json index 0912be190..2d84f1a46 100644 --- a/assets/layers/charging_station/charging_station.json +++ b/assets/layers/charging_station/charging_station.json @@ -3973,5 +3973,6 @@ } } ], - "#": "no-question-hint-check" + "#": "no-question-hint-check", + "allowCopy": true } diff --git a/assets/layers/cyclist_waiting_aid/cyclist_waiting_aid.json b/assets/layers/cyclist_waiting_aid/cyclist_waiting_aid.json index d974442a5..d5297e8b8 100644 --- a/assets/layers/cyclist_waiting_aid/cyclist_waiting_aid.json +++ b/assets/layers/cyclist_waiting_aid/cyclist_waiting_aid.json @@ -220,6 +220,7 @@ } }, "allowMove": false, + "allowCopy": true, "credits": "Robin van der Linde", "credits:uid": 5093765 } diff --git a/assets/layers/elevator/elevator.json b/assets/layers/elevator/elevator.json index 5e19cef5e..9d6081d8a 100644 --- a/assets/layers/elevator/elevator.json +++ b/assets/layers/elevator/elevator.json @@ -570,5 +570,6 @@ ] } } - ] + ], + "allowCopy": true } diff --git a/assets/layers/fitness_station/fitness_station.json b/assets/layers/fitness_station/fitness_station.json index 386503e0b..7887bfef0 100644 --- a/assets/layers/fitness_station/fitness_station.json +++ b/assets/layers/fitness_station/fitness_station.json @@ -576,5 +576,6 @@ "allowMove": { "enableRelocation": false, "enableImproveAccuracy": true - } + }, + "allowCopy": true } diff --git a/assets/layers/hydrant/hydrant.json b/assets/layers/hydrant/hydrant.json index 104fb54ac..e273bd8f8 100644 --- a/assets/layers/hydrant/hydrant.json +++ b/assets/layers/hydrant/hydrant.json @@ -635,5 +635,6 @@ ] } } - ] + ], + "allowCopy": true } diff --git a/assets/layers/parcel_lockers/parcel_lockers.json b/assets/layers/parcel_lockers/parcel_lockers.json index 45e43f48e..33d4f38b8 100644 --- a/assets/layers/parcel_lockers/parcel_lockers.json +++ b/assets/layers/parcel_lockers/parcel_lockers.json @@ -336,5 +336,6 @@ "deletion": true, "allowMove": { "enableImproveAccuracy": true - } + }, + "allowCopy": true } diff --git a/assets/layers/picnic_table/picnic_table.json b/assets/layers/picnic_table/picnic_table.json index 98f81ff6b..da95cf2db 100644 --- a/assets/layers/picnic_table/picnic_table.json +++ b/assets/layers/picnic_table/picnic_table.json @@ -180,5 +180,6 @@ "allowMove": { "enableRelocation": false, "enableImproveAccuracy": true - } + }, + "allowCopy": true } diff --git a/assets/layers/shower/shower.json b/assets/layers/shower/shower.json index 5678194c2..4b5467a6b 100644 --- a/assets/layers/shower/shower.json +++ b/assets/layers/shower/shower.json @@ -329,5 +329,6 @@ "allowMove": { "enableImproveAccuracy": true, "enableRelocation": false - } + }, + "allowCopy": true } diff --git a/assets/layers/sport_pitch/sport_pitch.json b/assets/layers/sport_pitch/sport_pitch.json index bdd05a104..14597be0c 100644 --- a/assets/layers/sport_pitch/sport_pitch.json +++ b/assets/layers/sport_pitch/sport_pitch.json @@ -857,5 +857,6 @@ "allowMove": { "enableImproveAccuracy": true, "enableRelocation": false - } + }, + "allowCopy": true } diff --git a/assets/layers/vending_machine/vending_machine.json b/assets/layers/vending_machine/vending_machine.json index bfbd31db3..93c74c87d 100644 --- a/assets/layers/vending_machine/vending_machine.json +++ b/assets/layers/vending_machine/vending_machine.json @@ -1596,5 +1596,6 @@ "allowMove": { "enableImproveAccuracy": true, "enableRelocation": true - } + }, + "allowCopy": true } diff --git a/assets/layers/visitor_information_centre/visitor_information_centre.json b/assets/layers/visitor_information_centre/visitor_information_centre.json index c1bdaecba..0ce3eb328 100644 --- a/assets/layers/visitor_information_centre/visitor_information_centre.json +++ b/assets/layers/visitor_information_centre/visitor_information_centre.json @@ -35,12 +35,14 @@ "minzoom": 12, "title": { "render": "{name}", - "mappings": [{ - "if": "name=", - "then": { - "en": "Information office" + "mappings": [ + { + "if": "name=", + "then": { + "en": "Information office" + } } - }] + ] }, "pointRendering": [ { diff --git a/assets/layers/waste_basket/waste_basket.json b/assets/layers/waste_basket/waste_basket.json index a0d39220c..66804fd96 100644 --- a/assets/layers/waste_basket/waste_basket.json +++ b/assets/layers/waste_basket/waste_basket.json @@ -495,5 +495,6 @@ "allowMove": { "enableRelocation": false, "enableImproveAccuracy": true - } + }, + "allowCopy": true } diff --git a/assets/layers/windturbine/windturbine.json b/assets/layers/windturbine/windturbine.json index 401d36bd2..ef9687bc4 100644 --- a/assets/layers/windturbine/windturbine.json +++ b/assets/layers/windturbine/windturbine.json @@ -337,5 +337,6 @@ ] } } - ] + ], + "allowCopy": true } diff --git a/src/Models/ThemeConfig/Json/LayerConfigJson.ts b/src/Models/ThemeConfig/Json/LayerConfigJson.ts index a291d79bf..b33663ff4 100644 --- a/src/Models/ThemeConfig/Json/LayerConfigJson.ts +++ b/src/Models/ThemeConfig/Json/LayerConfigJson.ts @@ -543,6 +543,18 @@ export interface LayerConfigJson { */ allowMove?: MoveConfigJson | boolean + /** + * If set, a button 'copy point' will be shown. + * If clicked, the contributor can copy the point and create an identical copy, including pictures. + * + * group: editing + * question: Is copying a selected point allowed? + * iftrue: Allow contributors to copy a point + * iffalse: Don't allow contributors to copy points + * ifunset: Don't allow contributors to copy points (default) + */ + allowCopy?: boolean + /** * If set, a 'split this way' button is shown on objects rendered as LineStrings, e.g. highways. *