added formatting + missing "icon-overlap"

pull/67/head
Maciej 2022-03-10 09:45:41 +01:00
rodzic f03325cdc1
commit 01b1c700e5
2 zmienionych plików z 17 dodań i 8 usunięć

Wyświetl plik

@ -86,7 +86,7 @@ map.addControl(
new MaplibreGeocoder(geocoder_api, {
maplibregl: maplibregl
}),
'top-right' );
'top-right');
// Map interaction

Wyświetl plik

@ -1,6 +1,8 @@
let layers = {
"version": 8,
"metadata": {"maputnik:renderer": "mbgljs"},
"metadata": {
"maputnik:renderer": "mbgljs"
},
"center": [20, 52],
"zoom": 6,
"sources": {
@ -13,20 +15,21 @@ let layers = {
],
"tileSize": 256,
"maxzoom": 19,
"paint": {"raster-fade-duration": 100}
"paint": {
"raster-fade-duration": 100
}
},
"aed-locations": {
"type": "geojson",
"data": "../../aed_poland.geojson",
"cluster": true,
"clusterRadius": 32,
"maxzoom": 12
"maxzoom": 12,
}
},
"glyphs": "https://fonts.openmaptiles.org/{fontstack}/{range}.pbf",
"sprite": "https://aed.openstreetmap.org.pl/dev/src/sprites/aed-style",
"layers": [
{
"layers": [{
"id": "background",
"type": "raster",
"source": "raster-tiles",
@ -38,7 +41,11 @@ let layers = {
"type": "symbol",
"source": "aed-locations",
"filter": ["!", ["has", "point_count"]],
"layout": {"icon-image": "aed-default", "icon-size": 0.9}
"layout": {
"icon-image": "aed-default",
"icon-size": 0.9,
"icon-overlap": "always"
}
},
{
"id": "clustered-circle",
@ -63,7 +70,9 @@ let layers = {
"text-size": 14,
"text-letter-spacing": 0.05
},
"paint": {"text-color": "#f5f5f5"}
"paint": {
"text-color": "#f5f5f5"
}
}
],
"id": "53fam6b4c"