Starting to filter POIs points

This commit is contained in:
Eric van der Vlist 2023-01-31 11:23:52 +01:00
parent 1241802888
commit 046c4e47d5
1 changed files with 20 additions and 3 deletions

View File

@ -1,12 +1,12 @@
{ {
"version": 8, "version": 8,
"name": "Empty Style", "name": "Hiking",
"metadata": { "maputnik:renderer": "mbgljs" }, "metadata": { "maputnik:renderer": "mbgljs" },
"sources": { "sources": {
"dyomedea": { "dyomedea": {
"type": "vector", "type": "vector",
"tiles": [ "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, "minZoom": 0,
"maxZoom": 14 "maxZoom": 14
@ -20,7 +20,7 @@
"type": "line", "type": "line",
"source": "dyomedea", "source": "dyomedea",
"source-layer": "planet_osm_line", "source-layer": "planet_osm_line",
"filter": ["any", ["==", "route", "hiking"]], "filter": ["all", ["==", "route", "hiking"]],
"layout": { "visibility": "visible" }, "layout": { "visibility": "visible" },
"paint": { "paint": {
"line-color": "rgba(73, 3, 82, 1)", "line-color": "rgba(73, 3, 82, 1)",
@ -36,6 +36,23 @@
"minzoom": 14, "minzoom": 14,
"filter": ["all", ["in", "highway", "path", "track", "footway", "steps"]], "filter": ["all", ["in", "highway", "path", "track", "footway", "steps"]],
"paint": { "line-color": "rgba(73, 3, 82, 1)" } "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" "id": "c6w0li4lm"