From fcc09e2aceb8680473ce4c24bdc29e65f1ca93b1 Mon Sep 17 00:00:00 2001 From: evlist Date: Tue, 31 Jan 2023 12:06:34 +0100 Subject: [PATCH] Adding poi polygons. --- src/styles/hiking.json | 97 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 96 insertions(+), 1 deletion(-) diff --git a/src/styles/hiking.json b/src/styles/hiking.json index f117cf6..a1406ed 100644 --- a/src/styles/hiking.json +++ b/src/styles/hiking.json @@ -38,7 +38,7 @@ "paint": { "line-color": "rgba(73, 3, 82, 1)" } }, { - "id": "hiking-pois", + "id": "hiking-poi-points", "type": "circle", "source": "dyomedea", "source-layer": "planet_osm_point", @@ -131,6 +131,101 @@ "circle-radius": 10, "circle-stroke-width": 1 } + }, + { + "id": "hiking-poi-polygons", + "type": "fill", + "source": "dyomedea", + "source-layer": "planet_osm_polygon", + "minzoom": 11, + "filter": [ + "any", + [ + "in", + "amenity", + "bar", + "fast_food", + "food_court", + "pub", + "restaurant", + "cafe", + "atm", + "bank", + "doctors", + "hospital", + "pharmacy", + "police", + "fire_station", + "drinking_water", + "water_point", + "waste_basket", + "waste_disposal", + "vending_machine" + ], + [ + "in", + "shop", + "bakery", + "butcher", + "cheese", + "chocolate", + "convenience", + "dairy", + "farm", + "greengrocer", + "health_food", + "pasta", + "pastry", + "seafood", + "water", + "department_store", + "general", + "mall", + "supermarket", + "wholesale", + "outdoor", + "laundry" + ], + [ + "in", + "tourism", + "hotel", + "alpine_hut", + "apartment", + "camp_site", + "chalet", + "guest_house", + "hostel", + "motel", + "wilderness_hut", + "viewpoint" + ], + ["in", "waterway", "waterfall"], + [ + "in", + "natural", + "peak", + "cave_entrance", + "volcano", + "arch", + "arete", + "fumarole", + "rock", + "saddle", + "sinkhole", + "stone", + "glacier", + "spring", + "hot_spring", + "geyser" + ] + ], + "layout": { "visibility": "visible" }, + "paint": { + "fill-color": "rgba(49, 3, 3, 1)", + "fill-antialias": true, + "fill-outline-color": "rgba(4, 2, 41, 1)" + } } ], "id": "c6w0li4lm"