forked from MapComplete/MapComplete
Added shop layer to add new post partners
This commit is contained in:
parent
916a042408
commit
ece39191ea
2 changed files with 134 additions and 0 deletions
|
@ -182,6 +182,30 @@
|
|||
],
|
||||
"id": "OH"
|
||||
},
|
||||
{
|
||||
"id": "post_partner",
|
||||
"question": {
|
||||
"en": "Is this a post partner?"
|
||||
},
|
||||
"condition": "post_office=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"
|
||||
},
|
||||
"addExtraTags": [
|
||||
"was:post_office=post_partner"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "partner-brand",
|
||||
"render": {
|
||||
|
@ -446,6 +470,80 @@
|
|||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "addLayer",
|
||||
"name": {
|
||||
"en": "Add new post partner"
|
||||
},
|
||||
"description": {
|
||||
"en": "Add a new post partner to the map"
|
||||
},
|
||||
"source": {
|
||||
"osmTags": "shop~*"
|
||||
},
|
||||
"minzoom": 20,
|
||||
"minzoomVisible": 20,
|
||||
"title": {
|
||||
"render": {
|
||||
"en": "Shop"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "name~*",
|
||||
"then": {
|
||||
"en": "{name}"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"mapRendering": [
|
||||
{
|
||||
"icon": {
|
||||
"render": "./assets/themes/shops/shop.svg"
|
||||
},
|
||||
"iconSize": {
|
||||
"render": "40,40,center"
|
||||
},
|
||||
"location": [
|
||||
"point",
|
||||
"centroid"
|
||||
]
|
||||
},
|
||||
{
|
||||
"color": {
|
||||
"render": "#DADADA"
|
||||
},
|
||||
"width": {
|
||||
"render": "1"
|
||||
}
|
||||
}
|
||||
],
|
||||
"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"
|
||||
},
|
||||
"addExtraTags": [
|
||||
"was:post_office=post_partner"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue