diff --git a/website/src/lib/components/Map.svelte b/website/src/lib/components/Map.svelte index d2e09da5..eb892c0a 100644 --- a/website/src/lib/components/Map.svelte +++ b/website/src/lib/components/Map.svelte @@ -116,5 +116,10 @@ div :global(.mapboxgl-ctrl-top-right) { @apply z-10; + @apply flex; + @apply flex-col; + @apply items-end; + @apply h-full; + @apply overflow-hidden; } diff --git a/website/src/lib/components/layer-control/LayerControl.svelte b/website/src/lib/components/layer-control/LayerControl.svelte index f174941f..663f6db2 100644 --- a/website/src/lib/components/layer-control/LayerControl.svelte +++ b/website/src/lib/components/layer-control/LayerControl.svelte @@ -26,66 +26,64 @@ } - +
-
- -
-
- { - if (map) { - map.setStyle(basemaps[id]); - } - }} - /> -
- -
- { - if (map) { - if (checked) { - if (!map.getSource(id)) { - map.addSource(id, overlays[id]); - } - map.addLayer({ - id, - type: overlays[id].type === 'raster' ? 'raster' : 'line', - source: id, - paint: { - ...(id in opacities - ? overlays[id].type === 'raster' - ? { 'raster-opacity': opacities[id] } - : { 'line-opacity': opacities[id] } - : {}) - } - }); - } else { - map.removeLayer(id); - } - } - }} - /> -
- -
- -
+ +
+
+ { + if (map) { + map.setStyle(basemaps[id]); + } + }} + />
- -
+ +
+ { + if (map) { + if (checked) { + if (!map.getSource(id)) { + map.addSource(id, overlays[id]); + } + map.addLayer({ + id, + type: overlays[id].type === 'raster' ? 'raster' : 'line', + source: id, + paint: { + ...(id in opacities + ? overlays[id].type === 'raster' + ? { 'raster-opacity': opacities[id] } + : { 'line-opacity': opacities[id] } + : {}) + } + }); + } else { + map.removeLayer(id); + } + } + }} + /> +
+ +
+ +
+
+