diff --git a/src/map.js b/src/map.js index 8ac87b0..3124cd0 100644 --- a/src/map.js +++ b/src/map.js @@ -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'; }); diff --git a/src/style/layers.js b/src/style/layers.js index cd16586..d55ab51 100644 --- a/src/style/layers.js +++ b/src/style/layers.js @@ -13,8 +13,7 @@ let layers = { ], "tileSize": 256, "maxzoom": 19, - "paint": {"raster-fade-duration": 100}, - "attribution": "data © OpenStreetMap 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",