From 8b858b019a5f3a4bf7fec1fc7f89fcd8381bd654 Mon Sep 17 00:00:00 2001 From: michalgwo Date: Sat, 3 Feb 2024 14:55:21 +0100 Subject: [PATCH] set confectionery icon to chocolate in default style --- layers/poi/style.json | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/layers/poi/style.json b/layers/poi/style.json index 33c08857..ad246b5f 100644 --- a/layers/poi/style.json +++ b/layers/poi/style.json @@ -22,7 +22,13 @@ ] ] }, - "icon-image": "{subclass}", + "icon-image": [ + "match", + ["get", "subclass"], + "chocolate", + "confectionery", + ["get", "subclass"] + ], "text-field": "{name:latin}\n{name:nonlatin}", "visibility": "visible", "text-anchor": "top", @@ -99,7 +105,13 @@ ] ] }, - "icon-image": "{subclass}", + "icon-image": [ + "match", + ["get", "subclass"], + "chocolate", + "confectionery", + ["get", "subclass"] + ], "text-field": "{name:latin}\n{name:nonlatin}", "visibility": "visible", "text-anchor": "top",