forked from MapComplete/MapComplete
Usertests: explicitly mark the 'switch layers' button in special interactions, see #1316
This commit is contained in:
parent
c5c6bba731
commit
6709a27f71
8 changed files with 58 additions and 77 deletions
|
@ -1,11 +1,10 @@
|
|||
<script lang="ts">
|
||||
import ImportFlow from "./ImportFlow.svelte"
|
||||
import { PointImportFlowState } from "./PointImportFlowState"
|
||||
import {PointImportFlowState} from "./PointImportFlowState"
|
||||
import NewPointLocationInput from "../../BigComponents/NewPointLocationInput.svelte"
|
||||
import LayerConfig from "../../../Models/ThemeConfig/LayerConfig"
|
||||
import { UIEventSource } from "../../../Logic/UIEventSource"
|
||||
import MapControlButton from "../../Base/MapControlButton.svelte"
|
||||
import { Square3Stack3dIcon } from "@babeard/svelte-heroicons/solid"
|
||||
import {UIEventSource} from "../../../Logic/UIEventSource"
|
||||
import OpenBackgroundSelectorButton from "../../BigComponents/OpenBackgroundSelectorButton.svelte";
|
||||
|
||||
export let importFlow: PointImportFlowState
|
||||
|
||||
|
@ -52,11 +51,8 @@
|
|||
{value}
|
||||
/>
|
||||
</div>
|
||||
<MapControlButton
|
||||
on:click={() => state.guistate.backgroundLayerSelectionIsOpened.setData(true)}
|
||||
cls="absolute bottom-0"
|
||||
>
|
||||
<Square3Stack3dIcon class="h-6 w-6" />
|
||||
</MapControlButton>
|
||||
<div class="absolute bottom-0">
|
||||
<OpenBackgroundSelectorButton {state}/>
|
||||
</div>
|
||||
</div>
|
||||
</ImportFlow>
|
||||
|
|
|
@ -4,17 +4,17 @@
|
|||
*/
|
||||
import WayImportFlowState from "./WayImportFlowState"
|
||||
import ImportFlow from "./ImportFlow.svelte"
|
||||
import MapControlButton from "../../Base/MapControlButton.svelte"
|
||||
import { Square3Stack3dIcon } from "@babeard/svelte-heroicons/solid"
|
||||
import { UIEventSource } from "../../../Logic/UIEventSource"
|
||||
import { Map as MlMap } from "maplibre-gl"
|
||||
import { MapLibreAdaptor } from "../../Map/MapLibreAdaptor"
|
||||
import {UIEventSource} from "../../../Logic/UIEventSource"
|
||||
import {Map as MlMap} from "maplibre-gl"
|
||||
import {MapLibreAdaptor} from "../../Map/MapLibreAdaptor"
|
||||
import MaplibreMap from "../../Map/MaplibreMap.svelte"
|
||||
import ShowDataLayer from "../../Map/ShowDataLayer"
|
||||
import StaticFeatureSource from "../../../Logic/FeatureSource/Sources/StaticFeatureSource"
|
||||
import { ImportFlowUtils } from "./ImportFlow"
|
||||
import { GeoOperations } from "../../../Logic/GeoOperations"
|
||||
import {ImportFlowUtils} from "./ImportFlow"
|
||||
import {GeoOperations} from "../../../Logic/GeoOperations"
|
||||
import ConflateImportFlowState from "./ConflateImportFlowState"
|
||||
import OpenBackgroundSelectorButton from "../../BigComponents/OpenBackgroundSelectorButton.svelte";
|
||||
|
||||
export let importFlow: WayImportFlowState | ConflateImportFlowState
|
||||
|
||||
const state = importFlow.state
|
||||
|
@ -50,11 +50,8 @@
|
|||
<div class="h-32">
|
||||
<MaplibreMap {map} />
|
||||
</div>
|
||||
<MapControlButton
|
||||
on:click={() => state.guistate.backgroundLayerSelectionIsOpened.setData(true)}
|
||||
cls="absolute bottom-0"
|
||||
>
|
||||
<Square3Stack3dIcon class="h-6 w-6" />
|
||||
</MapControlButton>
|
||||
<div class="absolute bottom-0">
|
||||
<OpenBackgroundSelectorButton/>
|
||||
</div>
|
||||
</div>
|
||||
</ImportFlow>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue