Skip to content

Commit

Permalink
Food court POI rendering and taginfo
Browse files Browse the repository at this point in the history
  • Loading branch information
wmisener committed Nov 23, 2024
1 parent a32a27d commit 1ebaccd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
4 changes: 2 additions & 2 deletions scripts/taginfo_template.json
Original file line number Diff line number Diff line change
Expand Up @@ -585,9 +585,9 @@
"key": "amenity",
"value": "food_court",
"object_types": ["node", "area"],
"description": "Restaurants are marked by an icon representing a knife and fork.",
"description": "Food courts are marked by an icon representing a knife and fork inscribed in a circle.",
"doc_url": "https://openmaptiles.org/schema/#poi",
"icon_url": "https://raw.githubusercontent.com/osm-americana/openstreetmap-americana/main/icons/poi_restaurant.svg"
"icon_url": "https://raw.githubusercontent.com/osm-americana/openstreetmap-americana/main/icons/poi_restaurant_circle.svg"
},
{
"key": "amenity",
Expand Down
22 changes: 16 additions & 6 deletions src/layer/poi.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ var iconDefs = {
color: Color.poi.consumer,
description: "Coffee shop",
},
fuel: {
food_court: {
classes: {
fuel: ["fuel"],
fast_food: ["food_court"],
},
sprite: "poi_fuel",
sprite: "poi_restaurant_circle",
color: Color.poi.consumer,
description: "Gas station",
description: "Food court",
},
fire_station: {
classes: {
Expand All @@ -91,6 +91,14 @@ var iconDefs = {
color: Color.poi.infrastructure,
description: "Fire station",
},
fuel: {
classes: {
fuel: ["fuel"],
},
sprite: "poi_fuel",
color: Color.poi.consumer,
description: "Gas station",
},
hospital: {
classes: {
hospital: ["hospital"],
Expand Down Expand Up @@ -247,7 +255,7 @@ var iconDefs = {
restaurant: {
classes: {
restaurant: ["restaurant"],
fast_food: ["fast_food", "food_court"],
fast_food: ["fast_food"],
},
sprite: "poi_restaurant",
color: Color.poi.consumer,
Expand Down Expand Up @@ -343,6 +351,7 @@ export const poi = {
...getSubclasses(iconDefs.supermarket),
...getSubclasses(iconDefs.car_shop),
...getSubclasses(iconDefs.car_repair),
...getSubclasses(iconDefs.food_court),
...getSubclasses(iconDefs.hotel),
...getSubclasses(iconDefs.hostel),
...getSubclasses(iconDefs.restaurant),
Expand Down Expand Up @@ -396,6 +405,7 @@ export const poi = {
[
"bus_stop",
"fire_station",
"food_court",
"hospital",
"library",
"museum",
Expand Down Expand Up @@ -451,7 +461,7 @@ export const poi = {
[
"match",
["get", "subclass"],
["bus_stop", "tram_stop", "fuel", "supermarket"],
["bus_stop", "tram_stop", "fuel", "supermarket", "food_court"],
"",
label.localizedName,
],
Expand Down

0 comments on commit 1ebaccd

Please sign in to comment.