Skip to content

Commit

Permalink
Remove map implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
dokempf committed Oct 7, 2024
1 parent 79b4144 commit 57136cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
8 changes: 1 addition & 7 deletions src/components/logic/DetailControls.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { appLanguageStore, popSystemID, systemidStore, viewerPanelStateStore } from "../../lib/stores";
import { Button, ButtonGroup, Tooltip } from "flowbite-svelte";
import { BackwardStepOutline, ImageOutline, MapPinAltOutline, RectangleListOutline } from "flowbite-svelte-icons";
import { BackwardStepOutline, ImageOutline, RectangleListOutline } from "flowbite-svelte-icons";
export let data;
Expand Down Expand Up @@ -62,10 +62,4 @@
<Tooltip triggeredBy="#assets-nav" placement="bottom" class="z-10">
{l10n.assettext[$appLanguageStore]}
</Tooltip>
<Button id="map-nav" on:click={() => { viewerPanelStateStore.set("map"); }}>
<MapPinAltOutline class="inline-block w-6 h-6"/>
</Button>
<Tooltip triggeredBy="#map-nav" placement="bottom" class="z-10">
{l10n.maptext[$appLanguageStore]}
</Tooltip>
</ButtonGroup>
5 changes: 3 additions & 2 deletions src/components/logic/ViewerPanel.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import AssetViewer from "./AssetViewer.svelte";
import HierarchyViewer from "./HierarchyViewer.svelte";
import NotImplemented from "../utils/NotImplemented.svelte";
import "./hierarchy.css";
</script>
Expand All @@ -17,6 +18,6 @@
<div class="hierarchy-viewer">
<HierarchyViewer openids={data._path.map(entry => entry[table]._id)} table={table} root={data._path[0]}/>
</div>
{:else if $viewerPanelStateStore === "map"}
My Map
{:else}
<NotImplemented message="The viewer panel {$viewerPanelStateStore} is unknown."/>
{/if}

0 comments on commit 57136cb

Please sign in to comment.