Basic food court and outdoor seating layer (#1845)
This commit is contained in:
parent
53ca88d6a5
commit
f35f326004
11 changed files with 297 additions and 4 deletions
|
@ -281,7 +281,10 @@
|
|||
},
|
||||
{
|
||||
"if": {
|
||||
"and":["service:bicycle:cleaning~*","service:bicycle:cleaning!=no"]
|
||||
"and": [
|
||||
"service:bicycle:cleaning~*",
|
||||
"service:bicycle:cleaning!=no"
|
||||
]
|
||||
},
|
||||
"then": "circle:#6bc4f7;./assets/layers/bike_cleaning/bike_cleaning_icon.svg"
|
||||
}
|
||||
|
|
7
assets/layers/food_courts/food_court.svg
Normal file
7
assets/layers/food_courts/food_court.svg
Normal file
|
@ -0,0 +1,7 @@
|
|||
<svg width="900" height="900" viewBox="0 0 900 900" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect width="900" height="900" rx="150" fill="white"/>
|
||||
<path d="M222.328 580C152.016 580 127.641 626.895 128.578 650.312V673.75H409.828V650.312C409.828 626.875 386.391 580 316.078 580H222.328ZM128.578 697.188C105.141 697.188 105.141 720.625 128.578 720.625H409.828C433.266 720.625 433.266 697.188 409.828 697.188H128.578ZM128.578 744.797V759.445C128.578 775.48 147.699 790.938 163.734 790.938H374.672C390.707 790.938 409.828 775.48 409.828 759.445V744.797H128.578Z" fill="#C77400"/>
|
||||
<path d="M514.438 510V650.625C514.438 697.5 561.312 720.938 619.906 720.938C678.5 720.938 725.375 697.5 725.375 650.625H772.25C795.688 650.625 819.125 627.188 819.125 603.75V580.312C819.125 556.875 795.688 533.438 772.25 533.438H725.375V510H514.438ZM725.375 562.734H766.391C782.043 562.734 789.828 575.926 789.828 592.031C789.828 608.137 780.73 621.328 766.391 621.328H725.375V562.734ZM491 744.375C491 767.812 514.438 791.25 537.875 791.25H701.938C725.375 791.25 748.812 767.812 748.812 744.375H491Z" fill="#C77400"/>
|
||||
<path d="M491 156L537.875 437.25H678.5L725.375 156H491ZM520.297 179.438H696.078L688.344 226.312H527.562L520.297 179.438Z" fill="#C77400"/>
|
||||
<path d="M124.395 109C117.695 109 111 115.695 111 129.09V296.5C111 323.285 157.875 323.285 157.875 350.07L144.484 484H211.445L198.055 350.07C198.055 323.285 244.93 323.285 244.93 296.5V129.09C244.93 102.305 218.145 102.305 218.145 129.09V269.715C218.145 284.801 191.359 284.801 191.359 269.715V129.09C191.359 102.305 164.57 102.305 164.57 129.09V269.715C164.57 283.84 137.785 283.84 137.785 269.715V129.09C137.785 115.695 131.09 109 124.395 109ZM352.07 109C325.285 109 271.715 162.57 271.715 242.93C271.715 323.285 331.984 350.07 331.984 350.07L318.59 484H385.555L372.16 350.07C372.16 350.07 432.43 323.285 432.43 242.93C432.43 162.57 378.859 109 352.07 109Z" fill="#C77400"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.9 KiB |
2
assets/layers/food_courts/food_court.svg.license
Normal file
2
assets/layers/food_courts/food_court.svg.license
Normal file
|
@ -0,0 +1,2 @@
|
|||
SPDX-FileCopyrightText: OSM Carto
|
||||
SPDX-License-Identifier: CC0-1.0
|
76
assets/layers/food_courts/food_courts.json
Normal file
76
assets/layers/food_courts/food_courts.json
Normal file
|
@ -0,0 +1,76 @@
|
|||
{
|
||||
"id": "food_courts",
|
||||
"name": {
|
||||
"en": "Food Courts"
|
||||
},
|
||||
"description": {
|
||||
"en": "Food courts with a variety of food options."
|
||||
},
|
||||
"title": {
|
||||
"render": {
|
||||
"en": "Food Court"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "name~*",
|
||||
"then": "{name}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"source": {
|
||||
"osmTags": "amenity=food_court"
|
||||
},
|
||||
"minzoom": 12,
|
||||
"tagRenderings": [
|
||||
{
|
||||
"id": "name",
|
||||
"question": {
|
||||
"en": "What is the name of this food court?"
|
||||
},
|
||||
"freeform": {
|
||||
"key": "name",
|
||||
"type": "string",
|
||||
"placeholder": {
|
||||
"en": "Name of the food court"
|
||||
}
|
||||
},
|
||||
"render": {
|
||||
"en": "This food court is called <b>{name}</b>."
|
||||
}
|
||||
},
|
||||
"reviews",
|
||||
"images",
|
||||
"opening_hours",
|
||||
"wheelchair-access",
|
||||
"website",
|
||||
"phone",
|
||||
"smoking"
|
||||
],
|
||||
"pointRendering": [
|
||||
{
|
||||
"location": [
|
||||
"point",
|
||||
"centroid"
|
||||
],
|
||||
"marker": [
|
||||
{
|
||||
"icon": "./assets/layers/food_courts/food_court.svg"
|
||||
}
|
||||
],
|
||||
"label": {
|
||||
"mappings": [
|
||||
{
|
||||
"if": "name~*",
|
||||
"then": "<div style='background: white; padding: 0.25em; border-radius:0.5em'>{name}</div>"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"lineRendering": [
|
||||
{
|
||||
"color": "#C77400",
|
||||
"fillColor": "#C774004D"
|
||||
}
|
||||
]
|
||||
}
|
10
assets/layers/food_courts/license_info.json
Normal file
10
assets/layers/food_courts/license_info.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
[
|
||||
{
|
||||
"path": "food_court.svg",
|
||||
"license": "CC0-1.0",
|
||||
"authors": [
|
||||
"OSM Carto"
|
||||
],
|
||||
"sources": []
|
||||
}
|
||||
]
|
12
assets/layers/outdoor_seating/license_info.json
Normal file
12
assets/layers/outdoor_seating/license_info.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
[
|
||||
{
|
||||
"path": "outdoor_seating.svg",
|
||||
"license": "CC0-1.0",
|
||||
"authors": [
|
||||
"Adamant36"
|
||||
],
|
||||
"sources": [
|
||||
"https://github.com/gravitystorm/openstreetmap-carto/blob/master/symbols/leisure/outdoor_seating.svg"
|
||||
]
|
||||
}
|
||||
]
|
174
assets/layers/outdoor_seating/outdoor_seating.json
Normal file
174
assets/layers/outdoor_seating/outdoor_seating.json
Normal file
|
@ -0,0 +1,174 @@
|
|||
{
|
||||
"id": "outdoor_seating",
|
||||
"name": {
|
||||
"en": "Outdoor Seating"
|
||||
},
|
||||
"description": {
|
||||
"en": "Outdoor seating areas, usually located near cafes and restaurants."
|
||||
},
|
||||
"title": {
|
||||
"render": {
|
||||
"en": "Outdoor Seating area"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "name~*",
|
||||
"then": "{name}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"source": {
|
||||
"osmTags": "leisure=outdoor_seating"
|
||||
},
|
||||
"minzoom": 19,
|
||||
"tagRenderings": [
|
||||
"images",
|
||||
{
|
||||
"id": "access",
|
||||
"question": {
|
||||
"en": "Who can use this outdoor seating area?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "access=yes",
|
||||
"then": {
|
||||
"en": "Anyone can use this outdoor seating area."
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "access=customers",
|
||||
"then": {
|
||||
"en": "Only customers can use this outdoor seating area."
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "access=private",
|
||||
"then": {
|
||||
"en": "This outdoor seating area is private."
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "seasonal",
|
||||
"question": {
|
||||
"en": "Is this outdoor seating area seasonal?"
|
||||
},
|
||||
"multiAnswer": true,
|
||||
"mappings": [
|
||||
{
|
||||
"if": "seasonal=no",
|
||||
"then": {
|
||||
"en": "This outdoor seating area is available all year round."
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "seasonal=spring",
|
||||
"then": {
|
||||
"en": "This outdoor seating area is available in spring."
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "seasonal=summer",
|
||||
"then": {
|
||||
"en": "This outdoor seating area is available in summer."
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "seasonal=autumn",
|
||||
"then": {
|
||||
"en": "This outdoor seating area is available in autumn."
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "seasonal=winter",
|
||||
"then": {
|
||||
"en": "This outdoor seating area is available in winter."
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "seasonal=dry_season",
|
||||
"then": {
|
||||
"en": "This outdoor seating area is available in the dry season."
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"opening_hours_24_7",
|
||||
"website",
|
||||
"internet-all",
|
||||
"wheelchair-access",
|
||||
{
|
||||
"id": "heating",
|
||||
"question": {
|
||||
"en": "Is this outdoor seating area heated?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "heating=yes",
|
||||
"then": {
|
||||
"en": "This outdoor seating area is heated."
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "heating=no",
|
||||
"then": {
|
||||
"en": "This outdoor seating area is not heated."
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "covered",
|
||||
"question": {
|
||||
"en": "Is this outdoor seating area covered?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "covered=yes",
|
||||
"then": {
|
||||
"en": "This outdoor seating area is covered."
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "covered=no",
|
||||
"then": {
|
||||
"en": "This outdoor seating area is not covered."
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"builtin": "smoking",
|
||||
"override": {
|
||||
"mappings": [
|
||||
{},
|
||||
{},
|
||||
{
|
||||
"hideInAnswer": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"pointRendering": [
|
||||
{
|
||||
"location": [
|
||||
"point",
|
||||
"centroid"
|
||||
],
|
||||
"marker": [
|
||||
{
|
||||
"icon": "./assets/layers/outdoor_seating/outdoor_seating.svg"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"lineRendering": [
|
||||
{
|
||||
"color": "green",
|
||||
"fillColor": "#00FF004D",
|
||||
"width": 2
|
||||
}
|
||||
]
|
||||
}
|
3
assets/layers/outdoor_seating/outdoor_seating.svg
Normal file
3
assets/layers/outdoor_seating/outdoor_seating.svg
Normal file
|
@ -0,0 +1,3 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14">
|
||||
<path d="M 7.0078125,0 0,3 V 4 H 6.5 V 8 H 2 v 1 h 4.5 v 5 h 1 V 9 H 12 V 8 H 7.5 V 4 H 14 V 3 Z M 0,6 c 0,2.6666667 0,5.333333 0,8 h 1 v -2 h 2 v 2 H 4 C 4,13 4,12 4,11 3,11 2,11 1,11 V 6 Z m 13,0 v 5 c -1,0 -2,0 -3,0 0,1 0,2 0,3 h 1 v -2 h 2 v 2 h 1 c 0,-2.666667 0,-5.3333333 0,-8 z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 382 B |
|
@ -0,0 +1,2 @@
|
|||
SPDX-FileCopyrightText: Adamant36
|
||||
SPDX-License-Identifier: CC0-1.0
|
|
@ -37,7 +37,9 @@
|
|||
},
|
||||
"icon": "./assets/layers/cafe_pub/pub.svg",
|
||||
"layers": [
|
||||
"cafe_pub"
|
||||
"cafe_pub",
|
||||
"outdoor_seating",
|
||||
"food_courts"
|
||||
],
|
||||
"widenFactor": 1.5
|
||||
}
|
|
@ -31,7 +31,9 @@
|
|||
"icon": "./assets/layers/food/restaurant.svg",
|
||||
"layers": [
|
||||
"food",
|
||||
"ice_cream"
|
||||
"ice_cream",
|
||||
"outdoor_seating",
|
||||
"food_courts"
|
||||
],
|
||||
"widenFactor": 3
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue