aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-30 16:38:31 -0700
committerAdam Soltys <[email protected]>2022-09-30 16:38:31 -0700
commit4a6ead2846bb60308f60054397218389b785f220 (patch)
treedda9400b6abf6995b1817f14cb718291e0bd2dbb /src
parented2d77d382f4824f98254c831f26ccb51ba1e410 (diff)
downloadcoinos-ui-4a6ead2846bb60308f60054397218389b785f220.tar.gz
coinos-ui-4a6ead2846bb60308f60054397218389b785f220.zip
marker css
Diffstat (limited to 'src')
-rw-r--r--src/components/LocationsMap.svelte11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/components/LocationsMap.svelte b/src/components/LocationsMap.svelte
index 9b7c9997..8a8599c4 100644
--- a/src/components/LocationsMap.svelte
+++ b/src/components/LocationsMap.svelte
@@ -77,7 +77,7 @@
locations.forEach(({ lat, lng, info }) => {
let marker = L.marker([lat, lng]);
- marker.addTo(map).bindPopup(info)._icon.classList.add('huechange');
+ marker.bindPopup(info);
markers.addLayer(marker);
});
@@ -86,12 +86,7 @@
}
});
- onDestroy(async () => {
- if (map) {
- console.log('Unloading Leaflet map.');
- map.remove();
- }
- });
+ onDestroy(async () => map && map.remove());
</script>
<div
@@ -101,5 +96,5 @@
<style>
@import 'leaflet/dist/leaflet.css';
- @import 'leaflet.markercluster/dist/MarkerCluster.css';
+ @import 'leaflet.markercluster/dist/MarkerCluster.Default.css';
</style>