Skip to content

Commit

Permalink
scale the balloons depending on number of points
Browse files Browse the repository at this point in the history
  • Loading branch information
gluap committed May 19, 2024
1 parent 63bcbc4 commit 4c0b12a
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions content/map/map.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,25 @@
// get the year from the source's "year" property
'icon-image': 'group-marker',
'icon-anchor': 'bottom',
'icon-size': 0.3,
'icon-size': [
'step',
['get', 'point_count'],
0.2,
3,
0.4,
5,
0.5
],
'text-field': ["step", ["zoom"], "", 1, ["get", "point_count"]],
'text-font': [
'Open Sans Semibold',
'Arial Unicode MS Bold'
],
'text-offset': [0, -3],
'text-anchor': 'top',
'text-offset': [0, 1],
'text-anchor': 'bottom',
'text-allow-overlap': false,
'text-optional': true,
'icon-allow-overlap': true

}
});
Expand Down

0 comments on commit 4c0b12a

Please sign in to comment.