2022-03-27 00:52:21 +00:00
|
|
|
{
|
2022-03-06 18:03:08 +00:00
|
|
|
"version": 8,
|
2022-03-10 08:45:41 +00:00
|
|
|
"metadata": {
|
|
|
|
"maputnik:renderer": "mbgljs"
|
|
|
|
},
|
2022-03-06 18:03:08 +00:00
|
|
|
"center": [20, 52],
|
|
|
|
"zoom": 6,
|
|
|
|
"sources": {
|
|
|
|
"raster-tiles": {
|
|
|
|
"type": "raster",
|
|
|
|
"tiles": [
|
|
|
|
"https://a.tile.openstreetmap.org/{z}/{x}/{y}.png",
|
|
|
|
"https://b.tile.openstreetmap.org/{z}/{x}/{y}.png",
|
|
|
|
"https://c.tile.openstreetmap.org/{z}/{x}/{y}.png"
|
|
|
|
],
|
|
|
|
"tileSize": 256,
|
|
|
|
"maxzoom": 19,
|
2022-03-10 08:45:41 +00:00
|
|
|
"paint": {
|
|
|
|
"raster-fade-duration": 100
|
|
|
|
}
|
2022-03-06 18:03:08 +00:00
|
|
|
},
|
|
|
|
"aed-locations": {
|
|
|
|
"type": "geojson",
|
2022-03-27 17:38:40 +00:00
|
|
|
"data": "https://aed.openstreetmap.org.pl/dev/aed_poland.geojson",
|
2022-03-06 18:03:08 +00:00
|
|
|
"cluster": true,
|
2022-03-27 17:38:55 +00:00
|
|
|
"clusterRadius": 30,
|
|
|
|
"maxzoom": 15
|
2022-03-06 18:03:08 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"glyphs": "https://fonts.openmaptiles.org/{fontstack}/{range}.pbf",
|
2022-03-27 17:38:40 +00:00
|
|
|
"sprite": "https://aed.openstreetmap.org.pl/dev/src/map_style/sprite",
|
2022-03-10 08:45:41 +00:00
|
|
|
"layers": [{
|
2022-03-06 18:03:08 +00:00
|
|
|
"id": "background",
|
|
|
|
"type": "raster",
|
|
|
|
"source": "raster-tiles",
|
|
|
|
"minZoom": 0,
|
|
|
|
"maxZoom": 19
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "unclustered",
|
|
|
|
"type": "symbol",
|
|
|
|
"source": "aed-locations",
|
|
|
|
"filter": ["!", ["has", "point_count"]],
|
2022-03-10 08:45:41 +00:00
|
|
|
"layout": {
|
2022-03-27 17:38:40 +00:00
|
|
|
"icon-image": "marker_default",
|
|
|
|
"icon-size": 0.5,
|
2022-03-28 20:05:05 +00:00
|
|
|
"icon-allow-overlap": true
|
2022-03-10 08:45:41 +00:00
|
|
|
}
|
2022-03-06 18:03:08 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "clustered-circle",
|
|
|
|
"type": "circle",
|
|
|
|
"source": "aed-locations",
|
|
|
|
"filter": ["has", "point_count"],
|
|
|
|
"paint": {
|
|
|
|
"circle-color": "rgba(0,145,64, 0.85)",
|
2022-03-27 17:38:55 +00:00
|
|
|
"circle-radius": 16,
|
2022-03-06 18:03:08 +00:00
|
|
|
"circle-stroke-color": "rgba(245, 245, 245, 0.88)",
|
2022-03-27 17:38:55 +00:00
|
|
|
"circle-stroke-width": 2
|
2022-03-06 18:03:08 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "clustered-label",
|
|
|
|
"type": "symbol",
|
|
|
|
"source": "aed-locations",
|
|
|
|
"filter": ["has", "point_count"],
|
|
|
|
"layout": {
|
|
|
|
"text-field": "{point_count_abbreviated}",
|
|
|
|
"text-font": ["Open Sans Bold"],
|
2022-03-27 17:38:55 +00:00
|
|
|
"text-size": 12,
|
2022-03-06 18:03:08 +00:00
|
|
|
"text-letter-spacing": 0.05
|
|
|
|
},
|
2022-03-10 08:45:41 +00:00
|
|
|
"paint": {
|
|
|
|
"text-color": "#f5f5f5"
|
|
|
|
}
|
2022-03-06 18:03:08 +00:00
|
|
|
}
|
|
|
|
],
|
2022-03-27 00:52:21 +00:00
|
|
|
"id": "aed_map_style"
|
|
|
|
}
|