Skip to content

Commit

Permalink
add a render test for clusterMaxZoom
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Jan 22, 2021
1 parent 583e09f commit 802fa78
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"version": 8,
"metadata": {
"test": {
"width": 32,
"height": 32
}
},
"center": [-1.426798, 53.943034],
"zoom": 20,
"sources": {
"geojson": {
"type": "geojson",
"data": {
"features": [
{"type": "Feature", "geometry": {"type": "Point", "coordinates": [-1.426798, 53.943034]}},
{"type": "Feature", "geometry": {"type": "Point", "coordinates": [-1.426798, 53.943034]}}
]
},
"cluster": true,
"clusterRadius": 1,
"clusterMaxZoom": 20
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "cluster",
"type": "circle",
"source": "geojson",
"filter": ["==", "cluster", true],
"paint": {
"circle-color": "orange",
"circle-radius": 10
}
}
]
}

0 comments on commit 802fa78

Please sign in to comment.