Zmiana rozmiaru i koloru
pull/1/head
Cristoffs 2021-11-27 20:04:18 +01:00
rodzic 345179b67c
commit 7950251c39
1 zmienionych plików z 12 dodań i 15 usunięć

Wyświetl plik

@ -15,19 +15,16 @@ var map = new maplibregl.Map({
'https://c.tile.openstreetmap.org/{z}/{x}/{y}.png'
],
'tileSize': 256,
'attribution':
'map © <a target="_top" rel="noopener" href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.',
'attribution': 'map © <a target="_top" rel="noopener" href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.',
},
},
'layers': [
{
'id': 'background',
'type': 'raster',
'source': 'raster-tiles',
'minzoom': 0,
'maxzoom': 22,
},
]
'layers': [{
'id': 'background',
'type': 'raster',
'source': 'raster-tiles',
'minzoom': 0,
'maxzoom': 22,
}, ]
},
});
@ -46,7 +43,7 @@ map.on('load', () => {
'source': 'aed-locations',
'layout': {
'icon-image': ['image', 'aed-icon'],
'icon-size': 0.2,
'icon-size': 0.1,
},
'filter': ['!', ['has', 'point_count']],
});
@ -55,8 +52,8 @@ map.on('load', () => {
'type': 'circle',
'source': 'aed-locations',
'paint': {
'circle-color': '#09FF09',
'circle-radius': 40,
'circle-color': 'rgba(204, 255, 51, 0.72)',
'circle-radius': 30,
},
'filter': ['has', 'point_count'],
});
@ -76,4 +73,4 @@ map.on('load', () => {
'filter': ['has', 'point_count'],
});
});
});
});