forked from MapComplete/MapComplete
Fix manual import in GRB theme
This commit is contained in:
parent
62ad2351c9
commit
20eb87ab87
2 changed files with 4 additions and 3 deletions
|
@ -9,11 +9,12 @@
|
||||||
import MapControlButton from "../Base/MapControlButton.svelte"
|
import MapControlButton from "../Base/MapControlButton.svelte"
|
||||||
import Tr from "../Base/Tr.svelte"
|
import Tr from "../Base/Tr.svelte"
|
||||||
import StyleLoadingIndicator from "../Map/StyleLoadingIndicator.svelte"
|
import StyleLoadingIndicator from "../Map/StyleLoadingIndicator.svelte"
|
||||||
import { UIEventSource } from "../../Logic/UIEventSource"
|
import { Store, UIEventSource } from "../../Logic/UIEventSource"
|
||||||
import { Map as MlMap } from "maplibre-gl"
|
import { Map as MlMap } from "maplibre-gl"
|
||||||
import ThemeViewState from "../../Models/ThemeViewState"
|
import ThemeViewState from "../../Models/ThemeViewState"
|
||||||
|
|
||||||
export let state: ThemeViewState
|
export let state: ThemeViewState
|
||||||
|
export let map: Store<MlMap> = undefined
|
||||||
export let hideTooltip = false
|
export let hideTooltip = false
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -22,7 +23,7 @@
|
||||||
on:click={() => state.guistate.backgroundLayerSelectionIsOpened.setData(true)}
|
on:click={() => state.guistate.backgroundLayerSelectionIsOpened.setData(true)}
|
||||||
>
|
>
|
||||||
|
|
||||||
<StyleLoadingIndicator map={state.map} rasterLayer={state.mapProperties.rasterLayer} >
|
<StyleLoadingIndicator map={map ?? state.map} rasterLayer={state.mapProperties.rasterLayer} >
|
||||||
<Square3Stack3dIcon class="h-6 w-6" />
|
<Square3Stack3dIcon class="h-6 w-6" />
|
||||||
</StyleLoadingIndicator>
|
</StyleLoadingIndicator>
|
||||||
{#if !hideTooltip}
|
{#if !hideTooltip}
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
<MaplibreMap {map} mapProperties={mla} />
|
<MaplibreMap {map} mapProperties={mla} />
|
||||||
</div>
|
</div>
|
||||||
<div class="absolute bottom-0">
|
<div class="absolute bottom-0">
|
||||||
<OpenBackgroundSelectorButton />
|
<OpenBackgroundSelectorButton {state} {map} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ImportFlow>
|
</ImportFlow>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue