Skip to content

Commit

Permalink
Adding restaurant and fast food POI
Browse files Browse the repository at this point in the history
  • Loading branch information
whubsch committed Sep 11, 2024
1 parent f9a8682 commit cb9949b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions icons/poi_restaurant.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/layer/poi.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,15 @@ var iconDefs = {
color: Color.poi.transport,
description: "Tram stop",
},
restaurant: {
classes: {
restaurant: ["restaurant"],
fast_food: ["fast_food", "food_court"],
},
sprite: "poi_restaurant",
color: Color.poi.consumer,
description: "Restaurant or fast food",
},
school: {
classes: {
school: ["kindergarten", "school"],
Expand Down Expand Up @@ -336,6 +345,7 @@ export const poi = {
...getSubclasses(iconDefs.car_repair),
...getSubclasses(iconDefs.hotel),
...getSubclasses(iconDefs.hostel),
...getSubclasses(iconDefs.restaurant),
],
Color.poi.consumer,
[
Expand Down Expand Up @@ -415,6 +425,7 @@ export const poi = {
...getSubclasses(iconDefs.taxi),
...getSubclasses(iconDefs.hotel),
...getSubclasses(iconDefs.hostel),
...getSubclasses(iconDefs.restaurant),
],
16,
["clinic", "doctors", "parking"],
Expand Down

0 comments on commit cb9949b

Please sign in to comment.