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

Finalize world travel V2

This commit is contained in:
Sean Morley 2024-09-13 20:53:48 -04:00
parent cc7c04b0ec
commit 4648ae7798
4 changed files with 56 additions and 39 deletions

View file

@ -3,7 +3,7 @@ import type { PageServerLoad } from './$types';
const PUBLIC_SERVER_URL = process.env['PUBLIC_SERVER_URL'];
import type { Adventure } from '$lib/types';
import type { Actions, RequestEvent } from '@sveltejs/kit';
import type { Actions } from '@sveltejs/kit';
import { fetchCSRFToken, tryRefreshToken } from '$lib/index.server';
import { checkLink } from '$lib';

View file

@ -1,17 +1,17 @@
<script lang="ts">
import RegionCard from '$lib/components/RegionCard.svelte';
import type { Region, VisitedRegion } from '$lib/types';
import {
DefaultMarker,
MapEvents,
MapLibre,
Popup,
Marker,
GeoJSON,
LineLayer,
FillLayer,
SymbolLayer
} from 'svelte-maplibre';
// import {
// DefaultMarker,
// MapEvents,
// MapLibre,
// Popup,
// Marker,
// GeoJSON,
// LineLayer,
// FillLayer,
// SymbolLayer
// } from 'svelte-maplibre';
import type { PageData } from './$types';
export let data: PageData;
let regions: Region[] = data.props?.regions || [];
@ -58,7 +58,7 @@
{/each}
</div>
{#if data.props && data.props.regions}
<!-- {#if data.props && data.props.regions}
<MapLibre
style="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json"
class="relative aspect-[9/16] max-h-[70vh] w-full sm:aspect-video sm:max-h-full"
@ -73,7 +73,7 @@
</DefaultMarker>
{/each}
</MapLibre>
{/if}
{/if} -->
<svelte:head>
<title