From 67c2dcacdfcb50a88b9407f35d7181b70446f927 Mon Sep 17 00:00:00 2001 From: handymenny Date: Tue, 20 Feb 2024 18:15:44 +0100 Subject: [PATCH] style: use a generic shop icon as fallback for shops The generic icon replaces frozen_food, tattoo, watches icons --- layers/poi/style.json | 36 +++++++++----- style/icons/{frozen_food.svg => shop.svg} | 0 style/icons/tattoo.svg | 59 ----------------------- style/icons/watches.svg | 59 ----------------------- 4 files changed, 23 insertions(+), 131 deletions(-) rename style/icons/{frozen_food.svg => shop.svg} (100%) delete mode 100644 style/icons/tattoo.svg delete mode 100644 style/icons/watches.svg diff --git a/layers/poi/style.json b/layers/poi/style.json index e80fa94d..b117cb92 100644 --- a/layers/poi/style.json +++ b/layers/poi/style.json @@ -23,19 +23,29 @@ ] }, "icon-image": [ - "match", - ["get", "subclass"], - "chocolate", - "confectionery", - "wine", - "alcohol", - "kiosk", - "newsagent", - "perfume", - "perfumery", - "wholesale", - "trade", - ["get", "subclass"] + "coalesce", + [ + "image", + [ + "match", + ["get", "subclass"], + "chocolate", + "confectionery", + "wine", + "alcohol", + "kiosk", + "newsagent", + "perfume", + "perfumery", + "wholesale", + "trade", + ["get", "subclass"] + ] + ], + [ + "image", + "shop" + ] ], "text-field": "{name:latin}\n{name:nonlatin}", "visibility": "visible", diff --git a/style/icons/frozen_food.svg b/style/icons/shop.svg similarity index 100% rename from style/icons/frozen_food.svg rename to style/icons/shop.svg diff --git a/style/icons/tattoo.svg b/style/icons/tattoo.svg deleted file mode 100644 index d29e518e..00000000 --- a/style/icons/tattoo.svg +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - - diff --git a/style/icons/watches.svg b/style/icons/watches.svg deleted file mode 100644 index df654b43..00000000 --- a/style/icons/watches.svg +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - -