diff --git a/icons/poi_supermarket.svg b/icons/poi_supermarket.svg new file mode 100644 index 000000000..561510454 --- /dev/null +++ b/icons/poi_supermarket.svg @@ -0,0 +1,3 @@ + + + diff --git a/scripts/taginfo_template.json b/scripts/taginfo_template.json index 48cbf2850..868967ced 100644 --- a/scripts/taginfo_template.json +++ b/scripts/taginfo_template.json @@ -632,7 +632,14 @@ "doc_url": "https://openmaptiles.org/schema/#poi", "icon_url": "https://raw.githubusercontent.com/ZeLonewolf/openstreetmap-americana/main/icons/poi_pow_taoist.svg" }, - + { + "key": "shop", + "value": "supermarket", + "object_types": ["node", "area"], + "description": "Supermarkets are marked by an icon representing a grocery cart.", + "doc_url": "https://openmaptiles.org/schema/#poi", + "icon_url": "https://raw.githubusercontent.com/ZeLonewolf/openstreetmap-americana/main/icons/poi_supermarket.svg" + }, { "key": "highway", "value": "motorway", diff --git a/src/layer/poi.js b/src/layer/poi.js index e7df969d5..c2447533d 100644 --- a/src/layer/poi.js +++ b/src/layer/poi.js @@ -180,6 +180,14 @@ var iconDefs = { color: Color.poi.infrastructure, description: "School", }, + supermarket: { + classes: { + grocery: ["supermarket"], + }, + sprite: "poi_supermarket", + color: Color.poi.consumer, + description: "Supermarket", + }, college: { classes: { college: ["college", "university"], @@ -250,6 +258,7 @@ export const poi = { ...getSubclasses(iconDefs.fuel), ...getSubclasses(iconDefs.bar), ...getSubclasses(iconDefs.coffee), + ...getSubclasses(iconDefs.supermarket), ], Color.poi.consumer, [ @@ -306,6 +315,7 @@ export const poi = { ...getSubclasses(iconDefs.pow_shinto), ...getSubclasses(iconDefs.pow_taoist), ...getSubclasses(iconDefs.school), + ...getSubclasses(iconDefs.supermarket), "townhall", "tram_stop", ], @@ -335,7 +345,7 @@ export const poi = { [ "match", ["get", "subclass"], - ["bus_stop", "tram_stop", "fuel"], + ["bus_stop", "tram_stop", "fuel", "supermarket"], "", label.localizedName, ],