Skip to content

Commit

Permalink
Variable tree sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
russss committed May 17, 2024
1 parent a13caa6 commit f8a994b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions web/src/style/map_style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -954,14 +954,22 @@ const layers: LayerSpecificationWithZIndex[] = [
},
},
{
id: 'trees',
id: 'background_trees',
type: 'symbol',
source: 'site_plan',
'source-layer': 'natural_trees_point',
minzoom: 13,
layout: {
'icon-image': 'tree',
'icon-size': ['interpolate', ['exponential', 1.5], ['zoom'], 14, 0.01, 22, 2],
'icon-size': [
'interpolate',
['exponential', 1.5],
['zoom'],
14,
0.01,
22,
['*', ['to-number', ['coalesce', ['get', 'size'], 0.6]], 2.5],
],
'icon-allow-overlap': true,
'icon-rotate': ['%', ['*', ['get', 'gid'], 200], 360],
},
Expand Down

0 comments on commit f8a994b

Please sign in to comment.