diff --git a/assets/svg/center.svg b/assets/svg/center.svg index d2c0ce8d4..ace5c3c07 100644 --- a/assets/svg/center.svg +++ b/assets/svg/center.svg @@ -5,58 +5,24 @@ viewBox="0 0 544.02838 544.02838" version="1.1" id="svg1" - sodipodi:docname="center.svg" - inkscape:version="1.3.2 (1:1.3.2+202311252150+091e20ef0f)" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"> - - - - + style="fill:#000000;fill-opacity:1" /> + style="fill:#000000;fill-opacity:1" /> + style="fill:#000000;fill-opacity:1" /> + style="fill:#000000;fill-opacity:1" /> diff --git a/src/UI/Base/DirectionIndicator.svelte b/src/UI/Base/DirectionIndicator.svelte index b4225aac6..cb79d2c49 100644 --- a/src/UI/Base/DirectionIndicator.svelte +++ b/src/UI/Base/DirectionIndicator.svelte @@ -16,6 +16,7 @@ import Locale from "../i18n/Locale" import { ariaLabelStore } from "../../Utils/ariaLabel" import type { SpecialVisualizationState } from "../SpecialVisualization" + import Center from "../../assets/svg/Center.svelte" export let state: SpecialVisualizationState export let feature: Feature @@ -95,26 +96,34 @@ let label = labelFromCenter.map(labelFromCenter => { if (labelFromGps.data !== undefined) { - if(closeToCurrentLocation.data){ + if (closeToCurrentLocation.data) { return labelFromGps.data } return labelFromCenter + ", " + labelFromGps.data } return labelFromCenter }, [labelFromGps]) - function focusMap(){ + + function focusMap() { state.mapProperties.location.setData({ lon: fcenter[0], lat: fcenter[1] }) } - +{:else} + + {#if $bearingFromGps !== undefined} +
+ +
+ {/if} + +{/if} diff --git a/src/assets/svg/Center.svelte b/src/assets/svg/Center.svelte index 2eb0b3c11..7b0d1ccec 100644 --- a/src/assets/svg/Center.svelte +++ b/src/assets/svg/Center.svelte @@ -1,4 +1,4 @@ - \ No newline at end of file + \ No newline at end of file