diff --git a/assets/layers/advertising/advertising.json b/assets/layers/advertising/advertising.json index 36f305b489..52532e2e8c 100644 --- a/assets/layers/advertising/advertising.json +++ b/assets/layers/advertising/advertising.json @@ -291,10 +291,15 @@ "mappings": [ { "if": { - "or": [ + "and": [ + "_referencing_ways~*", "advertising=billboard" ] }, + "then": "./assets/themes/advertising/billboard_wall.svg" + }, + { + "if": "advertising=billboard", "then": "./assets/themes/advertising/billboard.svg" }, { @@ -454,6 +459,23 @@ "./assets/themes/advertising/Repsol_Billboard.jpg" ] }, + { + "tags": [ + "advertising=billboard" + ], + "snapToLayer": [ + "walls_and_buildings" + ], + "title": { + "en": "a billboard mounted to a wall" + }, + "description": { + "en": "A large outdoor advertising structure, typically found in high-traffic areas such as alongside busy roads mounted on a wall" + }, + "exampleImages": [ + "./assets/themes/advertising/billboard_wall.jpg" + ] + }, { "tags": [ "advertising=poster_box" diff --git a/assets/themes/advertising/billboard_wall.jpeg.license b/assets/themes/advertising/billboard_wall.jpeg.license new file mode 100644 index 0000000000..9afbe00e47 --- /dev/null +++ b/assets/themes/advertising/billboard_wall.jpeg.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: https://www.openstreetmap.org/user/GEO%20ECLA +SPDX-License-Identifier: CC0-1.0 \ No newline at end of file diff --git a/assets/themes/advertising/billboard_wall.jpg b/assets/themes/advertising/billboard_wall.jpg new file mode 100644 index 0000000000..b577fc20b7 Binary files /dev/null and b/assets/themes/advertising/billboard_wall.jpg differ diff --git a/assets/themes/advertising/billboard_wall.jpg.license b/assets/themes/advertising/billboard_wall.jpg.license new file mode 100644 index 0000000000..9afbe00e47 --- /dev/null +++ b/assets/themes/advertising/billboard_wall.jpg.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: https://www.openstreetmap.org/user/GEO%20ECLA +SPDX-License-Identifier: CC0-1.0 \ No newline at end of file diff --git a/assets/themes/advertising/billboard_wall.svg b/assets/themes/advertising/billboard_wall.svg new file mode 100644 index 0000000000..94bd25c4dc --- /dev/null +++ b/assets/themes/advertising/billboard_wall.svg @@ -0,0 +1,184 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + diff --git a/assets/themes/advertising/billboard_wall.svg.license b/assets/themes/advertising/billboard_wall.svg.license new file mode 100644 index 0000000000..fea8b9c65e --- /dev/null +++ b/assets/themes/advertising/billboard_wall.svg.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Barnes38 +SPDX-License-Identifier: CC-BY-SA-3.0 \ No newline at end of file diff --git a/assets/themes/advertising/license_info.json b/assets/themes/advertising/license_info.json index d07c92f740..45c9c2f867 100644 --- a/assets/themes/advertising/license_info.json +++ b/assets/themes/advertising/license_info.json @@ -249,6 +249,26 @@ "https://wiki.openstreetmap.org/wiki/File:Billboard_trunk.svg" ] }, + { + "path": "billboard_wall.jpg", + "license": "CC0-1.0", + "authors": [ + "https://www.openstreetmap.org/user/GEO%20ECLA" + ], + "sources": [ + "https://imgur.com/billboard-eHdb1ir" + ] + }, + { + "path": "billboard_wall.svg", + "license": "CC-BY-SA-3.0", + "authors": [ + "Barnes38" + ], + "sources": [ + "https://wiki.openstreetmap.org/wiki/File:Billboard_trunk.svg" + ] + }, { "path": "board.svg", "license": "CC-BY-SA-3.0", diff --git a/src/UI/Popup/AddNewPoint/PresetList.svelte b/src/UI/Popup/AddNewPoint/PresetList.svelte index 0602c0aeb6..a2404df1e7 100644 --- a/src/UI/Popup/AddNewPoint/PresetList.svelte +++ b/src/UI/Popup/AddNewPoint/PresetList.svelte @@ -55,6 +55,9 @@ for (const preset of layer.presets) { const tags = TagUtils.KVtoProperties(preset.tags ?? []) + if(preset.preciseInput.snapToLayers){ + tags["_referencing_ways"] = '["way/-1"]' + } const markers = layer.mapRendering.map((mr, i) => mr