diff --git a/assets/layers/usersettings/usersettings.json b/assets/layers/usersettings/usersettings.json index efc50f5c96..18672999e6 100644 --- a/assets/layers/usersettings/usersettings.json +++ b/assets/layers/usersettings/usersettings.json @@ -331,6 +331,30 @@ } ] }, + { + "id": "show_crosshair", + "question": { + "en":"Should a crosshair be shown in the center of the display?" + }, + "questionHint": { + "en":"This can help to accurately position a new element" + }, + "mappings": [ + { + "if": "mapcomplete-show_crosshair=yes", + "then": "Show a crosshair in the center of the map (when zoomed in above level 17)" + }, + { + "if": "mapcomplete-show_crosshair=no", + "then": "Do not show a crosshair in the center of the map" + }, + { + "if": "mapcomplete-show_crosshair=", + "then": "Do not show a crosshair in the center of the map", + "hideInAnswer": true + } + ] + }, { "id": "fixate-north", "question": { diff --git a/assets/svg/license_info.json b/assets/svg/license_info.json index d6643c1c3f..d8c29df6ee 100644 --- a/assets/svg/license_info.json +++ b/assets/svg/license_info.json @@ -249,6 +249,14 @@ ], "sources": [] }, + { + "path": "cross.svg", + "license": "CC0-1.0", + "authors": [ + "Pieter Vander Vennet" + ], + "sources": [] + }, { "path": "cross_bottom_right.svg", "license": "TRIVIAL", diff --git a/src/Logic/State/UserRelatedState.ts b/src/Logic/State/UserRelatedState.ts index 21648e0b7a..dbcd371b6c 100644 --- a/src/Logic/State/UserRelatedState.ts +++ b/src/Logic/State/UserRelatedState.ts @@ -39,6 +39,7 @@ export default class UserRelatedState { public readonly installedUserThemes: Store public readonly showAllQuestionsAtOnce: UIEventSource public readonly showTags: UIEventSource<"no" | undefined | "always" | "yes" | "full"> + public readonly showCrosshair: UIEventSource<"yes" | undefined> public readonly fixateNorth: UIEventSource public readonly homeLocation: FeatureSource public readonly language: UIEventSource @@ -102,6 +103,7 @@ export default class UserRelatedState { ) this.language = this.osmConnection.GetPreference("language") this.showTags = >this.osmConnection.GetPreference("show_tags") + this.showCrosshair = >this.osmConnection.GetPreference("show_crosshair") this.fixateNorth = >this.osmConnection.GetPreference("fixate-north") this.mangroveIdentity = new MangroveIdentity( this.osmConnection.GetLongPreference("identity", "mangrove") diff --git a/src/UI/Popup/TagHint.svelte b/src/UI/Popup/TagHint.svelte index fb07bad8e3..6d84f02858 100644 --- a/src/UI/Popup/TagHint.svelte +++ b/src/UI/Popup/TagHint.svelte @@ -4,6 +4,7 @@ import { Translation } from "../i18n/Translation" import Tr from "../Base/Tr.svelte" import type { SpecialVisualizationState } from "../SpecialVisualization" + import Translations from "../i18n/Translations" /** * A 'TagHint' will show the given tags in a human readable form. @@ -25,7 +26,7 @@ {#if $userDetails.loggedIn}
{#if tags === undefined} - No tags + {:else if embedIn === undefined} {:else} diff --git a/src/UI/ThemeViewGUI.svelte b/src/UI/ThemeViewGUI.svelte index 878b4ee16f..784c6617bf 100644 --- a/src/UI/ThemeViewGUI.svelte +++ b/src/UI/ThemeViewGUI.svelte @@ -1,114 +1,114 @@
@@ -233,6 +233,17 @@
+ + s === "yes")}> + z >= 17)}> +
+ +
+
+
+
+ + @@ -257,6 +268,7 @@ + @@ -364,7 +376,8 @@ state.guistate.menuIsOpened.setData(false) }> -
+ +