-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Is it possible to use MapTiler's map instead of MapLibre. I have tried the following
<script lang="ts">
import '@maptiler/sdk/dist/maptiler-sdk.css';
import { Map } from '@maptiler/sdk';
config.apiKey = "xxxx";
/** @type {HTMLCanvasElement} */
let mapContainer;
let map = $state(new Map({
container: mapContainer,
center: [16.62662018, 49.2125578]
zoom: 14
}));
import { MapLibre } from 'svelte-maplibre-gl';
</script>
<MapLibre inlineStyle="width: 100%; height: 100%;" map={map} bind:this={mapContainer}/>
but it complains about the container being null, which makes sense. Any idea how I could achieve that? Thanks!
ciscorn
Metadata
Metadata
Assignees
Labels
No labels