Files
MapLibreParticleLab/metrics/integration/render-tests/geojson/clustered/style.json
2023-03-25 14:46:49 +01:00

74 lines
1.3 KiB
JSON

{
"version": 8,
"metadata": {
"test": {
"width": 512,
"height": 512
}
},
"center": [
-0.01,
0
],
"zoom": 0,
"sources": {
"geojson": {
"type": "geojson",
"data": "local://data/places.geojson",
"cluster": true,
"clusterRadius": 25
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "cluster",
"type": "circle",
"source": "geojson",
"filter": [
"==",
"cluster",
true
],
"paint": {
"circle-color": "rgba(0, 200, 0, 1)",
"circle-radius": 20
}
},
{
"id": "cluster_label",
"type": "symbol",
"source": "geojson",
"filter": [
"==",
"cluster",
true
],
"layout": {
"text-field": "{point_count}",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
],
"text-size": 12,
"text-allow-overlap": true,
"text-ignore-placement": true
}
},
{
"id": "unclustered_point",
"type": "circle",
"source": "geojson",
"filter": [
"!=",
"cluster",
true
],
"paint": {
"circle-color": "rgba(0, 0, 200, 1)",
"circle-radius": 10
}
}
]
}