Skip to content

Commit

Permalink
Merge pull request #1153 from whubsch/restaurant
Browse files Browse the repository at this point in the history
Adding POI icon for restaurants and fast food
  • Loading branch information
ZeLonewolf authored Sep 13, 2024
2 parents 88c72ad + 3fa5169 commit 4695469
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 4695469

Please sign in to comment.