From 3d41eb2447b88e75c4f1c77c27f4747219be7d59 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Mon, 11 Nov 2024 02:56:50 +0100 Subject: [PATCH] made sure that trees and rest areas are styled correctly --- map/styles/navigatum-basemap.json | 48 ++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/map/styles/navigatum-basemap.json b/map/styles/navigatum-basemap.json index a5662a6e2..cf25f38cc 100644 --- a/map/styles/navigatum-basemap.json +++ b/map/styles/navigatum-basemap.json @@ -120,7 +120,22 @@ "source-layer": "recreational_nodes", "minzoom": 17, "filter": ["==", ["get", "natural"], "tree"], - "paint": {"circle-color": "rgba(92, 134, 64, 0.79)", "circle-radius": 10} + "paint": { + "circle-color": "rgba(94, 180, 100, 0.61)", + "circle-radius": { + "stops": [ + [17, 5], + [18, 15], + [19, 30], + [20, 60], + [21, 120], + [22, 240], + [23, 480] + ] + }, + "circle-opacity": {"stops": [[17, 0.1], [18, 0.3], [19, 0.4]]}, + "circle-blur": 0.4 + } }, { "id": "landuse_residential", @@ -2204,6 +2219,37 @@ ] } }, + { + "id": "poi_rest_areas", + "type": "symbol", + "source": "recreational", + "source-layer": "recreational_nodes", + "minzoom": 17, + "filter": [ + "any", + ["in", "amenity", "bench", "lounger"], + ["==", "leisure", "picnic_table"] + ], + "layout": { + "icon-image": [ + "match", + ["get", "ameinty"], + ["bench"], + ["literal", "temaki-bench"], + ["lounger"], + ["literal", "temaki-tree-and-bench"], + ["literal", "highway-rest-area"] + ], + "icon-optional": true + }, + "paint": { + "icon-color": "#725A51", + "icon-halo-color": "#fff", + "icon-halo-width": 2, + "icon-halo-blur": 1, + "icon-opacity": {"stops": [[17, 0], [18, 1]]} + } + }, { "id": "poi_office", "type": "symbol",