From 046c4e47d5a4ed2537950c61cd7e1ba9189340d1 Mon Sep 17 00:00:00 2001 From: evlist Date: Tue, 31 Jan 2023 11:23:52 +0100 Subject: [PATCH] Starting to filter POIs points --- src/styles/hiking.json | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/src/styles/hiking.json b/src/styles/hiking.json index f863593..d56118e 100644 --- a/src/styles/hiking.json +++ b/src/styles/hiking.json @@ -1,12 +1,12 @@ { "version": 8, - "name": "Empty Style", + "name": "Hiking", "metadata": { "maputnik:renderer": "mbgljs" }, "sources": { "dyomedea": { "type": "vector", "tiles": [ - "https://geo.dyomedea.com/geoserver/gwc/service/wmts/rest/dyomedea/EPSG:900913/EPSG:900913:{z}/{y}/{x}?format=application/json;type=geojson" + "https://geo.dyomedea.com/geoserver/gwc/service/wmts/rest/dyomedea/EPSG:900913/EPSG:900913:{z}/{y}/{x}?format=application/vnd.mapbox-vector-tile" ], "minZoom": 0, "maxZoom": 14 @@ -20,7 +20,7 @@ "type": "line", "source": "dyomedea", "source-layer": "planet_osm_line", - "filter": ["any", ["==", "route", "hiking"]], + "filter": ["all", ["==", "route", "hiking"]], "layout": { "visibility": "visible" }, "paint": { "line-color": "rgba(73, 3, 82, 1)", @@ -36,6 +36,23 @@ "minzoom": 14, "filter": ["all", ["in", "highway", "path", "track", "footway", "steps"]], "paint": { "line-color": "rgba(73, 3, 82, 1)" } + }, + { + "id": "hiking-pois", + "type": "circle", + "source": "dyomedea", + "source-layer": "planet_osm_point", + "minzoom": 10, + "filter": [ + "any", + ["in", "amenity", "bar", "fast_food", "food_court", "pub", "restaurant"] + ], + "layout": { "visibility": "visible" }, + "paint": { + "circle-color": "rgba(80, 4, 4, 1)", + "circle-radius": 10, + "circle-stroke-width": 1 + } } ], "id": "c6w0li4lm"