Themes(wayside_shrine): add preset to snap to a wal

This commit is contained in:
Pieter Vander Vennet 2025-03-13 18:48:40 +01:00
parent 98e8adf41b
commit e8951e2b80
4 changed files with 40 additions and 7 deletions

Binary file not shown.

After

(image error) Size: 333 KiB

View file

@ -0,0 +1,2 @@
SPDX-FileCopyrightText: Pieter Vander Vennet
SPDX-License-Identifier: CC-BY-SA-4.0

View file

@ -1,4 +1,14 @@
[
{
"path": "MountedShrineExample.jpg",
"license": "CC-BY-SA-4.0",
"authors": [
"Pieter Vander Vennet"
],
"sources": [
"https://panoramax.mapcomplete.org"
]
},
{
"path": "shrine.svg",
"license": "CC0-1.0",

View file

@ -55,6 +55,23 @@
"./assets/layers/wayside_shrine/shrine_example2.jpg",
"./assets/layers/wayside_shrine/shrine_example3.jpg"
]
},
{
"tags": [
"historic=wayside_shrine"
],
"title": {
"en": "a wayside shrine mounted on a wall"
},
"snapToLayer": [
"walls_and_buildings"
],
"description": {
"en": "A wayside shrine typically shows a religious depiction, usually placed by a road or pathway. This shrine is mounted on a wall"
},
"exampleImages": [
"./assets/layers/wayside_shrine/MountedShrineExample.jpg"
]
}
],
"tagRenderings": [
@ -67,18 +84,22 @@
"freeform": {
"key": "name",
"type": "string",
"addExtraTags": ["noname="]
"addExtraTags": [
"noname="
]
},
"render": {
"en": "The name of this shrine is <b>{name}</b>"
},
"mappings": [{
"if": "noname=yes",
"alsoShowIf": "name=",
"then": {
"en": "This shrine does not have a name"
"mappings": [
{
"if": "noname=yes",
"alsoShowIf": "name=",
"then": {
"en": "This shrine does not have a name"
}
}
}]
]
},
{
"question": {