Small vending machine theme

This commit is contained in:
Robin van der Linde 2023-06-29 16:30:43 +02:00
parent d81ccd71cb
commit 3bdf519205
Signed by: Robin-van-der-Linde
GPG key ID: 53956B3252478F0D
11 changed files with 1794 additions and 1 deletions

View file

@ -17,5 +17,6 @@
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[svelte]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
},
"editor.formatOnSave": true
}

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M96 224v32V416c0 17.7 14.3 32 32 32h32c17.7 0 32-14.3 32-32V327.8c9.9 6.6 20.6 12 32 16.1V368c0 8.8 7.2 16 16 16s16-7.2 16-16V351.1c5.3 .6 10.6 .9 16 .9s10.7-.3 16-.9V368c0 8.8 7.2 16 16 16s16-7.2 16-16V343.8c11.4-4 22.1-9.4 32-16.1V416c0 17.7 14.3 32 32 32h32c17.7 0 32-14.3 32-32V256l32 32v49.5c0 9.5 2.8 18.7 8.1 26.6L530 427c8.8 13.1 23.5 21 39.3 21c22.5 0 41.9-15.9 46.3-38l20.3-101.6c2.6-13-.3-26.5-8-37.3l-3.9-5.5V184c0-13.3-10.7-24-24-24s-24 10.7-24 24v14.4l-52.9-74.1C496 86.5 452.4 64 405.9 64H272 256 192 144C77.7 64 24 117.7 24 184v54C9.4 249.8 0 267.8 0 288v17.6c0 8 6.4 14.4 14.4 14.4C46.2 320 72 294.2 72 262.4V256 224 184c0-24.3 12.1-45.8 30.5-58.9C98.3 135.9 96 147.7 96 160v64zM560 336a16 16 0 1 1 32 0 16 16 0 1 1 -32 0zM166.6 166.6c-4.2-4.2-6.6-10-6.6-16c0-12.5 10.1-22.6 22.6-22.6H361.4c12.5 0 22.6 10.1 22.6 22.6c0 6-2.4 11.8-6.6 16l-23.4 23.4C332.2 211.8 302.7 224 272 224s-60.2-12.2-81.9-33.9l-23.4-23.4z"/></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M192 496C86 496 0 394 0 288C0 176 64 16 192 16s192 160 192 272c0 106-86 208-192 208zM154.8 134c6.5-6 7-16.1 1-22.6s-16.1-7-22.6-1c-23.9 21.8-41.1 52.7-52.3 84.2C69.7 226.1 64 259.7 64 288c0 8.8 7.2 16 16 16s16-7.2 16-16c0-24.5 5-54.4 15.1-82.8c10.1-28.5 25-54.1 43.7-71.2z"/></svg>

After

Width:  |  Height:  |  Size: 520 B

View file

@ -0,0 +1,62 @@
[
{
"path": "cow.svg",
"license": "CC-BY 4.0",
"authors": [
"Font Awesome"
],
"sources": [
"https://fontawesome.com/icons/cow?f=classic&s=solid"
]
},
{
"path": "egg.svg",
"license": "CC-BY 4.0",
"authors": [
"Font Awesome"
],
"sources": [
"https://fontawesome.com/icons/egg?f=classic&s=solid"
]
},
{
"path": "mug-saucer.svg",
"license": "CC-BY 4.0",
"authors": [
"Font Awesome"
],
"sources": [
"https://fontawesome.com/icons/mug-saucer?f=regular&s=solid"
]
},
{
"path": "smoking.svg",
"license": "CC-BY 4.0",
"authors": [
"Font Awesome"
],
"sources": [
"https://fontawesome.com/icons/smoking?f=classic&s=solid"
]
},
{
"path": "utensils.svg",
"license": "CC-BY 4.0",
"authors": [
"Font Awesome"
],
"sources": [
"https://fontawesome.com/icons/utensils?f=classic&s=solid"
]
},
{
"path": "vending_machine.svg",
"license": "CC-BY 4.0",
"authors": [
"Vectorportal.com"
],
"sources": [
"https://vectorportal.com/vector/vending-machine/35308"
]
}
]

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M96 64c0-17.7 14.3-32 32-32H448h64c70.7 0 128 57.3 128 128s-57.3 128-128 128H480c0 53-43 96-96 96H192c-53 0-96-43-96-96V64zM480 224h32c35.3 0 64-28.7 64-64s-28.7-64-64-64H480V224zM32 416H544c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32z"/></svg>

After

Width:  |  Height:  |  Size: 514 B

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M448 32V43c0 38.2 15.2 74.8 42.2 101.8l21 21c21 21 32.8 49.5 32.8 79.2v11c0 17.7-14.3 32-32 32s-32-14.3-32-32V245c0-12.7-5.1-24.9-14.1-33.9l-21-21C405.9 151.1 384 98.1 384 43V32c0-17.7 14.3-32 32-32s32 14.3 32 32zM576 256V245c0-38.2-15.2-74.8-42.2-101.8l-21-21c-21-21-32.8-49.5-32.8-79.2V32c0-17.7 14.3-32 32-32s32 14.3 32 32V43c0 12.7 5.1 24.9 14.1 33.9l21 21c39 39 60.9 91.9 60.9 147.1v11c0 17.7-14.3 32-32 32s-32-14.3-32-32zM0 416c0-35.3 28.7-64 64-64H416c17.7 0 32 14.3 32 32v96c0 17.7-14.3 32-32 32H64c-35.3 0-64-28.7-64-64V416zm224 0v32H384V416H224zm288-64c17.7 0 32 14.3 32 32v96c0 17.7-14.3 32-32 32s-32-14.3-32-32V384c0-17.7 14.3-32 32-32zm96 0c17.7 0 32 14.3 32 32v96c0 17.7-14.3 32-32 32s-32-14.3-32-32V384c0-17.7 14.3-32 32-32z"/></svg>

After

Width:  |  Height:  |  Size: 987 B

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M416 0C400 0 288 32 288 176V288c0 35.3 28.7 64 64 64h32V480c0 17.7 14.3 32 32 32s32-14.3 32-32V352 240 32c0-17.7-14.3-32-32-32zM64 16C64 7.8 57.9 1 49.7 .1S34.2 4.6 32.4 12.5L2.1 148.8C.7 155.1 0 161.5 0 167.9c0 45.9 35.1 83.6 80 87.7V480c0 17.7 14.3 32 32 32s32-14.3 32-32V255.6c44.9-4.1 80-41.8 80-87.7c0-6.4-.7-12.8-2.1-19.1L191.6 12.5c-1.8-8-9.3-13.3-17.4-12.4S160 7.8 160 16V150.2c0 5.4-4.4 9.8-9.8 9.8c-5.1 0-9.3-3.9-9.8-9L127.9 14.6C127.2 6.3 120.3 0 112 0s-15.2 6.3-15.9 14.6L83.7 151c-.5 5.1-4.7 9-9.8 9c-5.4 0-9.8-4.4-9.8-9.8V16zm48.3 152l-.3 0-.3 0 .3-.7 .3 .7z"/></svg>

After

Width:  |  Height:  |  Size: 820 B

View file

@ -0,0 +1,501 @@
{
"id": "vending_machine",
"name": {
"en": "Vending Machines",
"nl": "Verkoopautomaten"
},
"description": {
"en": "Layer showing vending machines",
"nl": "Laag met verkoopautomaten"
},
"source": {
"osmTags": {
"and": [
"amenity=vending_machine",
"vending!~(parking_tickets|public_transport_tickets|bottle_return|excrement_bags)"
]
}
},
"title": {
"render": {
"en": "Vending machine",
"nl": "Verkoopautomaat"
},
"mappings": [
{
"if": "name~*",
"then": {
"en": "Vending machine {name}",
"nl": "Verkoopautomaat {name}"
}
},
{
"if": "brand~*",
"then": {
"en": "Vending machine {brand}",
"nl": "Verkoopautomaat {brand}"
}
}
]
},
"tagRenderings": [
"images",
{
"id": "vending",
"question": {
"en": "What does this vending machine sell?",
"nl": "Wat verkoopt deze verkoopautomaat?"
},
"freeform": {
"key": "vending",
"addExtraTags": [
"fixme=Freeform input used, value may need to be checked"
]
},
"render": {
"en": "This vending machine sells {vending}",
"nl": "Deze verkoopautomaat verkoopt {vending}"
},
"mappings": [
{
"if": "vending=drinks",
"then": {
"en": "Drinks are sold",
"nl": "Dranken worden verkocht"
},
"icon": "./assets/layers/id_presets/temaki-bottles.svg"
},
{
"if": "vending=sweets",
"then": {
"en": "Sweets are sold",
"nl": "Snoep wordt verkocht"
},
"icon": "./assets/layers/id_presets/maki-confectionery.svg"
},
{
"if": "vending=food",
"then": {
"en": "Food is sold",
"nl": "Eten wordt verkocht"
},
"icon": "./assets/layers/vending_machine/utensils.svg"
},
{
"if": "vending=cigarettes",
"then": {
"en": "Cigarettes are sold",
"nl": "Sigaretten worden verkocht"
},
"icon": "./assets/layers/vending_machine/smoking.svg"
},
{
"if": "vending=condoms",
"then": {
"en": "Condoms are sold",
"nl": "Condooms worden verkocht"
}
},
{
"if": "vending=coffee",
"then": {
"en": "Coffee is sold",
"nl": "Koffie wordt verkocht"
},
"icon": "./assets/layers/vending_machine/mug-saucer.svg"
},
{
"if": "vending=water",
"then": {
"en": "Drinking water is sold",
"nl": "Drinkwater wordt verkocht"
},
"icon": "./assets/layers/id_presets/temaki-water_bottle.svg"
},
{
"if": "vending=newspapers",
"then": {
"en": "Newspapers are sold",
"nl": "Kranten worden verkocht"
},
"icon": "./assets/layers/id_presets/fas-newspaper.svg"
},
{
"if": "vending=bicycle_tube",
"then": {
"en": "Bicycle inner tubes are sold",
"nl": "Binnenbanden voor fietsen worden verkocht"
}
},
{
"if": "vending=milk",
"then": {
"en": "Milk is sold",
"nl": "Melk wordt verkocht"
},
"icon": "./assets/layers/vending_machine/cow.svg"
},
{
"if": "vending=bread",
"then": {
"en": "Bread is sold",
"nl": "Brood wordt verkocht"
},
"icon": "./assets/layers/id_presets/maki-bakery.svg"
},
{
"if": "vending=eggs",
"then": {
"en": "Eggs are sold",
"nl": "Eieren worden verkocht"
},
"icon": "./assets/layers/vending_machine/egg.svg"
},
{
"if": "vending=cheese",
"then": {
"en": "Cheese is sold",
"nl": "Kaas wordt verkocht"
},
"icon": "./assets/layers/id_presets/fas-cheese.svg"
}
],
"multiAnswer": true
},
"opening_hours_24_7",
"payment-options-split",
"denominations-coins",
"denominations-notes",
{
"id": "operator",
"question": {
"en": "Who operates this vending machine?",
"nl": "Wie beheert deze verkoopautomaat?"
},
"freeform": {
"key": "operator",
"placeholder": {
"en": "Name of operator",
"nl": "Naam van beheerder"
}
},
"render": {
"en": "This vending machine is operated by {operator}",
"nl": "Deze verkoopautomaat wordt beheerd door {operator}"
}
},
{
"id": "indoor",
"question": {
"en": "Is this vending machine indoors?",
"nl": "Is deze verkoopautomaat binnen?"
},
"mappings": [
{
"if": "indoor=",
"then": {
"en": "This vending machine is outdoors",
"nl": "Deze verkoopautomaat is buiten"
},
"hideInAnswer": true
},
{
"if": "indoor=yes",
"then": {
"en": "This vending machine is indoors",
"nl": "Deze verkoopautomaat is binnen"
}
},
{
"if": "indoor=no",
"then": {
"en": "This vending machine is outdoors",
"nl": "Deze verkoopautomaat is buiten"
}
}
]
},
"level"
],
"calculatedTags": [
"_vending_count=feat.properties.vending.split(';').length"
],
"presets": [
{
"title": {
"en": "a vending machine",
"nl": "een verkoopautomaat"
},
"tags": [
"amenity=vending_machine"
]
}
],
"mapRendering": [
{
"icon": {
"render": "./assets/layers/vending_machine/vending_machine.svg",
"mappings": [
{
"if": "vending=drinks",
"then": "circle:white;./assets/layers/id_presets/temaki-bottles.svg"
},
{
"if": "vending=sweets",
"then": "circle:white;./assets/layers/id_presets/maki-confectionery.svg"
},
{
"if": "vending=food",
"then": "circle:white;./assets/layers/vending_machine/utensils.svg"
},
{
"if": "vending=cigarettes",
"then": "circle:white;./assets/layers/vending_machine/smoking.svg"
},
{
"if": "vending=coffee",
"then": "circle:white;./assets/layers/vending_machine/mug-saucer.svg"
},
{
"if": "vending=water",
"then": "circle:white;./assets/layers/id_presets/temaki-water_bottle.svg"
},
{
"if": "vending=newspapers",
"then": "circle:white;./assets/layers/id_presets/fas-newspaper.svg"
},
{
"if": "vending=milk",
"then": "circle:white;./assets/layers/vending_machine/cow.svg"
},
{
"if": "vending=bread",
"then": "circle:white;./assets/layers/id_presets/maki-bakery.svg"
},
{
"if": "vending=eggs",
"then": "circle:white;./assets/layers/vending_machine/egg.svg"
},
{
"if": "vending=cheese",
"then": "circle:white;./assets/layers/id_presets/fas-cheese.svg"
}
]
},
"location": [
"point",
"centroid"
],
"iconBadges": [
{
"if": "opening_hours~*",
"then": "icons.isOpen"
},
{
"if": {
"and": [
"_vending_count>1",
"vending~.*drinks.*"
]
},
"then": "circle:white;./assets/layers/id_presets/temaki-bottles.svg"
},
{
"if": {
"and": [
"_vending_count>1",
"vending~.*sweets.*"
]
},
"then": "circle:white;./assets/layers/id_presets/maki-confectionery.svg"
},
{
"if": {
"and": [
"_vending_count>1",
"vending~.*food.*"
]
},
"then": "circle:white;./assets/layers/vending_machine/utensils.svg"
},
{
"if": {
"and": [
"_vending_count>1",
"vending~.*cigarettes.*"
]
},
"then": "circle:white;./assets/layers/vending_machine/smoking.svg"
},
{
"if": {
"and": [
"_vending_count>1",
"vending~.*coffee.*"
]
},
"then": "circle:white;./assets/layers/vending_machine/mug-saucer.svg"
},
{
"if": {
"and": [
"_vending_count>1",
"vending~.*water.*"
]
},
"then": "circle:white;./assets/layers/id_presets/temaki-water_bottle.svg"
},
{
"if": {
"and": [
"_vending_count>1",
"vending~.*newspapers.*"
]
},
"then": "circle:white;./assets/layers/id_presets/fas-newspaper.svg"
},
{
"if": {
"and": [
"_vending_count>1",
"vending~.*milk.*"
]
},
"then": "circle:white;./assets/layers/vending_machine/cow.svg"
},
{
"if": {
"and": [
"_vending_count>1",
"vending~.*bread.*"
]
},
"then": "circle:white;./assets/layers/id_presets/maki-bakery.svg"
},
{
"if": {
"and": [
"_vending_count>1",
"vending~.*eggs.*"
]
},
"then": "circle:white;./assets/layers/vending_machine/egg.svg"
},
{
"if": {
"and": [
"_vending_count>1",
"vending~.*cheese.*"
]
},
"then": "circle:white;./assets/layers/id_presets/fas-cheese.svg"
}
]
}
],
"filter": [
"open_now",
{
"id": "vending",
"options": [
{
"question": {
"en": "All vending machines",
"nl": "Alle verkoopautomaten"
}
},
{
"question": {
"en": "Sale of drinks",
"nl": "Verkoop van dranken"
},
"osmTags": "vending~i~.*drinks.*"
},
{
"question": {
"en": "Sale of sweets",
"nl": "Verkoop van snoep"
},
"osmTags": "vending~i~.*sweets.*"
},
{
"question": {
"en": "Sale of food",
"nl": "Verkoop van eten"
},
"osmTags": "vending~i~.*food.*"
},
{
"question": {
"en": "Sale of cigarettes",
"nl": "Verkoop van sigaretten"
},
"osmTags": "vending~i~.*cigarettes.*"
},
{
"question": {
"en": "Sale of condoms",
"nl": "Verkoop van condooms"
},
"osmTags": "vending~i~.*condoms.*"
},
{
"question": {
"en": "Sale of coffee",
"nl": "Verkoop van koffie"
},
"osmTags": "vending~i~.*coffee.*"
},
{
"question": {
"en": "Sale of water",
"nl": "Verkoop van water"
},
"osmTags": "vending~i~.*water.*"
},
{
"question": {
"en": "Sale of newspapers",
"nl": "Verkoop van kranten"
},
"osmTags": "vending~i~.*newspapers.*"
},
{
"question": {
"en": "Sale of bicycle inner tubes",
"nl": "Verkoop van fietsbinnenbanden"
},
"osmTags": "vending~i~.*bicycle_tube.*"
},
{
"question": {
"en": "Sale of milk",
"nl": "Verkoop van melk"
},
"osmTags": "vending~i~.*milk.*"
},
{
"question": {
"en": "Sale of bread",
"nl": "Verkoop van brood"
},
"osmTags": "vending~i~.*bread.*"
},
{
"question": {
"en": "Sale of eggs",
"nl": "Verkoop van eieren"
},
"osmTags": "vending~i~.*eggs.*"
},
{
"question": {
"en": "Sale of cheese",
"nl": "Verkoop van kaas"
},
"osmTags": "vending~i~.*cheese.*"
}
]
}
]
}

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 53 KiB

View file

@ -406,6 +406,10 @@
"if": "theme=uk_addresses",
"then": "./assets/themes/uk_addresses/housenumber_unknown.svg"
},
{
"if": "theme=vending_machine",
"then": "./assets/layers/vending_machine/vending_machine.svg"
},
{
"if": "theme=walls_and_buildings",
"then": "./assets/layers/walls_and_buildings/walls_and_buildings.png"

View file

@ -0,0 +1,18 @@
{
"id": "vending_machine",
"title": {
"en": "Vending Machines",
"nl": "Verkoopautomaten"
},
"description": {
"en": "Find vending machines for everything",
"nl": "Vind verkoopautomaten voor alles"
},
"icon": "./assets/layers/vending_machine/vending_machine.svg",
"startLat": 53.21102,
"startLon": 6.56511,
"startZoom": 19,
"layers": [
"vending_machine"
]
}