diff --git a/icons/poi_restaurant_circle.svg b/icons/poi_restaurant_circle.svg new file mode 100644 index 000000000..c75db433e --- /dev/null +++ b/icons/poi_restaurant_circle.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/scripts/taginfo_template.json b/scripts/taginfo_template.json index af0b7d139..bc140e022 100644 --- a/scripts/taginfo_template.json +++ b/scripts/taginfo_template.json @@ -606,9 +606,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", diff --git a/src/layer/poi.js b/src/layer/poi.js index b3c61b632..762e244d8 100644 --- a/src/layer/poi.js +++ b/src/layer/poi.js @@ -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: { @@ -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"], @@ -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, @@ -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), @@ -396,6 +405,7 @@ export const poi = { [ "bus_stop", "fire_station", + "food_court", "hospital", "library", "museum", @@ -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, ],