map view refactor

This commit is contained in:
Jan Prochazka
2022-12-31 12:43:27 +01:00
parent cb0a9770d2
commit 3aa7e6c022
6 changed files with 158 additions and 137 deletions

View File

@@ -4,16 +4,16 @@
import useEditorData from '../query/useEditorData';
export let tabid;
let selection;
let geoJson;
useEditorData({
tabid,
onInitialData: value => {
selection = value;
geoJson = value;
},
});
</script>
{#if selection}
<MapView {selection} />
{#if geoJson}
<MapView {geoJson} />
{/if}