diff --git a/assets/layers/advertising/advertising.json b/assets/layers/advertising/advertising.json index bb902639da..93675138bc 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 6f91d2dc84..5025fc0622 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 869e5018d6..7b636b381d 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 5c297823f0..5870ca0b5a 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 aa56bb38df..0ebb68ddda 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 0912be1900..2d84f1a463 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 d974442a5a..d5297e8b89 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 5e19cef5e7..9d6081d8ac 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 386503e0bd..7887bfef05 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 104fb54acf..e273bd8f82 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 45e43f48e0..33d4f38b87 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 98f81ff6b8..da95cf2db9 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 5678194c2b..4b5467a6b7 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 bdd05a104e..14597be0ca 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 bfbd31db32..93c74c87d3 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 c1bdaecba7..0ce3eb328d 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 a0d39220cf..66804fd96d 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 401d36bd24..ef9687bc42 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 a291d79bfa..b33663ff49 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. *