embedding progress

This commit is contained in:
vcoppe
2024-07-12 15:00:33 +02:00
parent cfeeabb580
commit d774f3a53c
14 changed files with 386 additions and 281 deletions

View File

@@ -11,12 +11,13 @@
import { settings } from '$lib/db';
import { locale } from 'svelte-i18n';
import { get } from 'svelte/store';
import { mapboxAccessToken } from '$lib/assets/layers';
mapboxgl.accessToken = mapboxAccessToken;
import { PUBLIC_MAPBOX_TOKEN } from '$env/static/public';
export let accessToken = PUBLIC_MAPBOX_TOKEN;
export let geocoder = true;
mapboxgl.accessToken = accessToken;
let fitBoundsOptions: mapboxgl.FitBoundsOptions = {
maxZoom: 15,
linear: true,