From cb9949b50594ba20512923bafe243c149cd26047 Mon Sep 17 00:00:00 2001 From: Will Date: Tue, 10 Sep 2024 20:58:52 -0400 Subject: [PATCH 1/2] Adding restaurant and fast food POI --- icons/poi_restaurant.svg | 4 ++++ src/layer/poi.js | 11 +++++++++++ 2 files changed, 15 insertions(+) create mode 100644 icons/poi_restaurant.svg diff --git a/icons/poi_restaurant.svg b/icons/poi_restaurant.svg new file mode 100644 index 000000000..77e1fd2e3 --- /dev/null +++ b/icons/poi_restaurant.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/layer/poi.js b/src/layer/poi.js index 8fc48fc6b..b3c61b632 100644 --- a/src/layer/poi.js +++ b/src/layer/poi.js @@ -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"], @@ -336,6 +345,7 @@ export const poi = { ...getSubclasses(iconDefs.car_repair), ...getSubclasses(iconDefs.hotel), ...getSubclasses(iconDefs.hostel), + ...getSubclasses(iconDefs.restaurant), ], Color.poi.consumer, [ @@ -415,6 +425,7 @@ export const poi = { ...getSubclasses(iconDefs.taxi), ...getSubclasses(iconDefs.hotel), ...getSubclasses(iconDefs.hostel), + ...getSubclasses(iconDefs.restaurant), ], 16, ["clinic", "doctors", "parking"], From 24204851150e10ba7f00bda59ab5702cfe96e77f Mon Sep 17 00:00:00 2001 From: Will Date: Thu, 12 Sep 2024 18:40:50 -0400 Subject: [PATCH 2/2] Tweaking restaurant icon --- icons/poi_restaurant.svg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/icons/poi_restaurant.svg b/icons/poi_restaurant.svg index 77e1fd2e3..87fb83907 100644 --- a/icons/poi_restaurant.svg +++ b/icons/poi_restaurant.svg @@ -1,4 +1,4 @@ - - - + + +