kopia lustrzana https://github.com/openstreetmap-polska/aed-mapa
removed unecessary attribution + code formatting
rodzic
e10f90fe51
commit
23ae4625aa
|
@ -5,7 +5,6 @@ let aedNumberElements = [
|
|||
document.getElementById('aed-number-mobile'),
|
||||
];
|
||||
let aedNumberComment = document.getElementById('aed-number-comment');
|
||||
|
||||
let fetchMetadata = fetch(aedMetadata);
|
||||
|
||||
const map = new maplibregl.Map({
|
||||
|
@ -73,6 +72,7 @@ let geocoder_api = {
|
|||
}
|
||||
};
|
||||
|
||||
// Map controls
|
||||
map.addControl(control, controlsLocation);
|
||||
|
||||
map.addControl(geolocate, controlsLocation);
|
||||
|
@ -83,8 +83,8 @@ map.addControl(
|
|||
}),
|
||||
'top-right' );
|
||||
|
||||
console.log('Loading icon...');
|
||||
|
||||
// Map interaction
|
||||
map.on('mouseenter', 'clustered-circle', () => {
|
||||
map.getCanvas().style.cursor = 'pointer';
|
||||
});
|
||||
|
|
|
@ -13,8 +13,7 @@ let layers = {
|
|||
],
|
||||
"tileSize": 256,
|
||||
"maxzoom": 19,
|
||||
"paint": {"raster-fade-duration": 100},
|
||||
"attribution": "data © <a target=\"_top\" rel=\"noopener\" href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors."
|
||||
"paint": {"raster-fade-duration": 100}
|
||||
},
|
||||
"aed-locations": {
|
||||
"type": "geojson",
|
||||
|
@ -39,7 +38,7 @@ let layers = {
|
|||
"type": "symbol",
|
||||
"source": "aed-locations",
|
||||
"filter": ["!", ["has", "point_count"]],
|
||||
"layout": {"icon-image": "aed-default", "icon-size": 0.75}
|
||||
"layout": {"icon-image": "aed-default", "icon-size": 0.8}
|
||||
},
|
||||
{
|
||||
"id": "clustered-circle",
|
||||
|
|
Ładowanie…
Reference in New Issue