forked from MapComplete/MapComplete
Themes(wayside_shrine): add preset to snap to a wal
This commit is contained in:
parent
98e8adf41b
commit
e8951e2b80
4 changed files with 40 additions and 7 deletions
assets/layers/wayside_shrine
BIN
assets/layers/wayside_shrine/MountedShrineExample.jpg
Normal file
BIN
assets/layers/wayside_shrine/MountedShrineExample.jpg
Normal file
Binary file not shown.
After ![]() (image error) Size: 333 KiB |
|
@ -0,0 +1,2 @@
|
|||
SPDX-FileCopyrightText: Pieter Vander Vennet
|
||||
SPDX-License-Identifier: CC-BY-SA-4.0
|
|
@ -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",
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Add table
Reference in a new issue