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 Tr from "../Base/Tr.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 ThemeViewState from "../../Models/ThemeViewState"
|
||||
|
||||
export let state: ThemeViewState
|
||||
export let map: Store<MlMap> = undefined
|
||||
export let hideTooltip = false
|
||||
</script>
|
||||
|
||||
|
@ -22,7 +23,7 @@
|
|||
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" />
|
||||
</StyleLoadingIndicator>
|
||||
{#if !hideTooltip}
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
<MaplibreMap {map} mapProperties={mla} />
|
||||
</div>
|
||||
<div class="absolute bottom-0">
|
||||
<OpenBackgroundSelectorButton />
|
||||
<OpenBackgroundSelectorButton {state} {map} />
|
||||
</div>
|
||||
</div>
|
||||
</ImportFlow>
|
||||
|
|
Loading…
Reference in a new issue