mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 06:26:00 +00:00
map view refactor
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user