Small ghostsigns theme

This commit is contained in:
Robin van der Linde 2024-02-19 23:45:31 +01:00
parent 244f253fbd
commit b01761095e
Signed by untrusted user: Robin-van-der-Linde
GPG key ID: 53956B3252478F0D
2 changed files with 183 additions and 0 deletions

View file

@ -0,0 +1,179 @@
{
"id": "ghostsigns",
"title": {
"en": "Ghost Signs"
},
"description": {
"en": "A map showing disused signs on buildings"
},
"icon": "./assets/themes/advertising/wall_painting.svg",
"layers": [
{
"id": "ghostsigns",
"title": {
"render": {
"en": "Ghost Sign"
}
},
"description": {
"en": "Layer showing disused signs on buildings"
},
"name": {
"en": "Ghost Signs"
},
"source": {
"osmTags": {
"and": [
"historic~*",
"advertising=wall_painting"
]
}
},
"minzoom": 10,
"allowMove": {
"enableImproveAccuracy": true
},
"tagRenderings": [
{
"id": "historic",
"question": {
"en": "Is this a ghost sign?"
},
"questionHint": {
"en": "Is this sign for a business that no longer exists or no longer being maintained?"
},
"mappings": [
{
"if": "historic=advertising",
"then": {
"en": "This is a ghost sign"
},
"alsoShowIf": "historic=yes"
},
{
"if": "historic=",
"then": {
"en": "This is not a ghost sign, answering this will hide the sign from the map"
}
}
]
},
"images",
{
"id": "name",
"condition": "name~*",
"render": {
"*": "{name}"
}
},
{
"id": "inscription",
"question": {
"en": "What is the text on the sign?"
},
"freeform": {
"key": "inscription",
"type": "string",
"placeholder": {
"en": "Text on the sign"
}
},
"render": {
"en": "The text on the sign is: {inscription}"
}
},
{
"id": "brand",
"question": {
"en": "For what business was this sign made?"
},
"freeform": {
"key": "brand",
"type": "string",
"placeholder": {
"en": "Business name"
}
},
"render": {
"en": "This sign was made for: {brand}"
}
}
],
"lineRendering": [
{
"color": "blue",
"width": 2
}
],
"pointRendering": [
{
"location": [
"point",
"centroid"
],
"marker": [
{
"icon": "./assets/themes/advertising/wall_painting.svg"
}
]
}
],
"presets": [
{
"tags": [
"historic=advertising",
"advertising=wall_painting"
],
"title": {
"en": "a ghost sign"
},
"snapToLayer": [
"walls_and_buildings"
],
"maxSnapDistance": 5
}
]
},
{
"builtin": "advertising",
"override": {
"source": {
"osmTags": "advertising=wall_painting"
},
"minzoom": 18,
"+tagRenderings": [
{
"id": "historic",
"question": {
"en": "Is this a ghost sign?"
},
"questionHint": {
"en": "Is this sign for a business that no longer exists or no longer being maintained?"
},
"mappings": [
{
"if": "historic=advertising",
"then": {
"en": "This is a ghost sign"
},
"alsoShowIf": "historic=yes"
},
{
"if": "historic=",
"then": {
"en": "This is not a ghost sign"
}
}
]
}
],
"=presets": [],
"pointRendering": [
{
"iconSize": "20,20"
}
]
}
}
]
}

View file

@ -252,6 +252,10 @@
"if": "theme=ghostbikes",
"then": "./assets/themes/ghostbikes/logo.svg"
},
{
"if": "theme=ghostsigns",
"then": "./assets/themes/advertising/wall_painting.svg"
},
{
"if": "theme=grb",
"then": "./assets/themes/grb/logo.svg"