mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-09-04 17:32:56 +00:00
use store to access map object
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
<script lang="ts">
|
||||
import mapboxgl from 'mapbox-gl';
|
||||
|
||||
import GPX from './GPX.svelte';
|
||||
import { GPXFile, parseGPX } from 'gpx';
|
||||
|
||||
export let map: mapboxgl.Map | null;
|
||||
|
||||
let files: GPXFile[] = [
|
||||
parseGPX(`<?xml version="1.0" encoding="UTF-8"?>
|
||||
<gpx xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
@@ -271,5 +267,5 @@
|
||||
</script>
|
||||
|
||||
{#each files as file}
|
||||
<GPX {map} {file} />
|
||||
<GPX {file} />
|
||||
{/each}
|
||||
|
Reference in New Issue
Block a user