mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 17:36:01 +00:00
20 lines
313 B
Svelte
20 lines
313 B
Svelte
<script lang="ts">
|
|
import MapView from '../elements/MapView.svelte';
|
|
|
|
import useEditorData from '../query/useEditorData';
|
|
|
|
export let tabid;
|
|
let geoJson;
|
|
|
|
useEditorData({
|
|
tabid,
|
|
onInitialData: value => {
|
|
geoJson = value;
|
|
},
|
|
});
|
|
</script>
|
|
|
|
{#if geoJson}
|
|
<MapView {geoJson} />
|
|
{/if}
|