2021-09-29 01:12:38 +02:00
|
|
|
{
|
2021-11-07 14:37:21 +01:00
|
|
|
"id": "cluster_style",
|
|
|
|
"description": "The style for the clustering in all themes. Enable `debug=true` to peak into clustered tiles",
|
|
|
|
"source": {
|
|
|
|
"osmTags": "tileId~*"
|
|
|
|
},
|
|
|
|
"title": "Clustered data",
|
|
|
|
"tagRenderings": [
|
|
|
|
"all_tags"
|
|
|
|
],
|
2021-11-07 15:31:55 +01:00
|
|
|
"mapRendering": [
|
|
|
|
{
|
|
|
|
"label": {
|
|
|
|
"render": "<div class='rounded-full text-xl font-bold' style='width: 2rem; height: 2rem; background: white'>{showCount}</div>",
|
2021-09-30 04:25:13 +02:00
|
|
|
"mappings": [
|
2021-11-07 15:31:55 +01:00
|
|
|
{
|
|
|
|
"if": "showCount>1000",
|
|
|
|
"then": "<div class='rounded-full text-xl font-bold flex flex-col' style='width: 2.5rem; height: 2.5rem; background: white'>{kilocount}K</div>"
|
|
|
|
}
|
2021-09-30 04:25:13 +02:00
|
|
|
]
|
2021-11-07 15:31:55 +01:00
|
|
|
},
|
|
|
|
"location": [
|
|
|
|
"point"
|
|
|
|
]
|
2021-09-30 04:25:13 +02:00
|
|
|
},
|
2021-11-07 15:31:55 +01:00
|
|
|
{
|
|
|
|
"color": {
|
|
|
|
"render": "#3c3",
|
2021-09-30 04:25:13 +02:00
|
|
|
"mappings": [
|
2021-11-07 15:31:55 +01:00
|
|
|
{
|
|
|
|
"if": "showCount>200",
|
|
|
|
"then": "#f33"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": "showCount>100",
|
|
|
|
"then": "#c93"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": "showCount>50",
|
|
|
|
"then": "#cc3"
|
|
|
|
}
|
2021-09-30 04:25:13 +02:00
|
|
|
]
|
2021-11-07 15:31:55 +01:00
|
|
|
},
|
|
|
|
"width": {
|
|
|
|
"render": "1"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2021-09-29 01:12:38 +02:00
|
|
|
}
|