1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-02 03:35:18 +02:00

refactor: Add Sweden GEOJSON for map visualization

This commit is contained in:
Sean Morley 2024-07-30 11:34:17 -04:00
parent 42f6c84633
commit 999440ff79
10 changed files with 4625 additions and 258 deletions

View file

@ -3,17 +3,8 @@
import Toast from '$lib/components/Toast.svelte';
import 'tailwindcss/tailwind.css';
export let data;
const enableAnalytics = process.env['ENABLE_ANALYTICS'] || 'false';
const unamiKey = process.env['UNAMI_KEY'] || '';
</script>
<svelte:head>
{#if enableAnalytics === 'true' && unamiKey}
<script defer src="https://cloud.umami.is/script.js" data-website-id={unamiKey}></script>
{/if}
</svelte:head>
<Navbar {data} />
<Toast />

View file

@ -202,16 +202,16 @@
paint={{ 'fill-color': 'rgba(37, 244, 26, 0.15)' }}
filter={['in', 'ISOCODE', ...visitArray]}
/>
<!-- <SymbolLayer
<SymbolLayer
layout={{
'text-field': ['slice', ['get', 'ISOCODE'], 3],
'text-field': ['get', 'name'],
'text-size': 12,
'text-anchor': 'center'
}}
paint={{
'text-color': 'black'
}}
/> -->
/>
</GeoJSON>
{/if}
<MapEvents on:click={addMarker} />