Merge develop

This commit is contained in:
Pieter Vander Vennet 2024-02-22 14:59:32 +01:00
commit 59356545ed
68 changed files with 1670 additions and 67 deletions

View file

@ -21,6 +21,8 @@
"startLat": 53.0565,
"startLon": 8.7492,
"layers": [
"elongated_coin"
"elongated_coin",
"souvenir_coin",
"souvenir_note"
]
}

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"

View file

@ -60,6 +60,7 @@
"startLon": 4.399,
"layers": [
"playground",
"playground_equipment",
{
"builtin": [
"bench",

View file

@ -54,7 +54,54 @@
"layers": [
"postboxes",
"postoffices",
"parcel_lockers"
"parcel_lockers",
{
"builtin": "shops",
"override": {
"minzoom": 18,
"minzoomVisible": 18,
"description": {
"en": "Add a new post partner to the map in an existing shop"
},
"+tagRenderings": [
{
"id": "post_partner",
"question": {
"en": "Is this shop a post partner?"
},
"mappings": [
{
"if": "post_office=post_partner",
"then": {
"en": "This shop is a post partner"
}
},
{
"if": "post_office=",
"then": {
"en": "This shop is not a post partner"
}
}
]
}
],
"shownByDefault": false,
"=presets": [
{
"tags": [
"shop=yes",
"post_office=post_partner"
],
"title": {
"en": "a missing shop that is a post partner"
},
"description": {
"en": "If a shop is not yet on the map and is a post partner, you can add it here."
}
}
]
}
}
],
"widenFactor": 1.5,
"clustering": {