diff --git a/src/UI/ThemeViewGUI.svelte b/src/UI/ThemeViewGUI.svelte
index feefe1ab6..26a24bb77 100644
--- a/src/UI/ThemeViewGUI.svelte
+++ b/src/UI/ThemeViewGUI.svelte
@@ -18,7 +18,7 @@
EyeIcon,
HeartIcon,
MenuIcon,
- XCircleIcon,
+ XCircleIcon
} from "@rgossiaux/svelte-heroicons/solid"
import Tr from "./Base/Tr.svelte"
import CommunityIndexView from "./BigComponents/CommunityIndexView.svelte"
@@ -72,9 +72,8 @@
import DocumentChartBar from "@babeard/svelte-heroicons/outline/DocumentChartBar"
import Marker from "./Map/Marker.svelte"
import AboutMapComplete from "./BigComponents/AboutMapComplete.svelte"
- import IfNot from "./Base/IfNot.svelte"
- import Hotkeys from "./Base/Hotkeys"
import HotkeyTable from "./BigComponents/HotkeyTable.svelte"
+ import SelectedElementPanel from "./Base/SelectedElementPanel.svelte"
export let state: ThemeViewState
let layout = state.layout
@@ -146,7 +145,7 @@
const bottomRight = mlmap.unproject([rect.right, rect.bottom])
const bbox = new BBox([
[topLeft.lng, topLeft.lat],
- [bottomRight.lng, bottomRight.lat],
+ [bottomRight.lng, bottomRight.lat]
])
state.visualFeedbackViewportBounds.setData(bbox)
}
@@ -213,7 +212,7 @@
-
+
{#if $visualFeedback}
@@ -287,9 +286,9 @@
htmlElem={openCurrentViewLayerButton}
>
- currentViewLayer.defaultIcon()}
- />
+ currentViewLayer.defaultIcon()}
+ />
{/if}
@@ -303,7 +302,7 @@
Testserver
- {/if}
+ {/if}
Faking a user (Testmode)
@@ -453,29 +452,32 @@
}}
>
-
-
-
-
+
{/if}
{#if $selectedElement !== undefined && $selectedLayer !== undefined && $selectedLayer.popupInFloatover}
- {
+
+ {#if $selectedLayer.popupInFloatover === "title"}
+ {
state.selectedElement.setData(undefined)
}}
- >
-
- {#if $selectedLayer.popupInFloatover === "title"}
-
-
-
- {/if}
-
-
-
+ >
+
+
+
+ {:else}
+ {
+ state.selectedElement.setData(undefined)
+ }}
+ >
+
+
+ {/if}
+
{/if}
i !== undefined)}>
@@ -551,13 +553,13 @@
state.guistate.backgroundLayerSelectionIsOpened.setData(false)
}}
>
-
+
@@ -583,7 +585,7 @@