Skip to content

Commit

Permalink
made sure that trees and rest areas are styled correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Nov 11, 2024
1 parent ebbd631 commit 3d41eb2
Showing 1 changed file with 47 additions and 1 deletion.
48 changes: 47 additions & 1 deletion map/styles/navigatum-basemap.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 3d41eb2

Please sign in to comment.