From 2900bdc78477d41330198b5bf9f4a618f1f9f7af Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Sun, 25 Apr 2021 16:01:46 +0200 Subject: [PATCH] Documentation improvement and warning cleanup --- InitUiElements.ts | 6 +----- Logic/SimpleMetaTagger.ts | 5 +++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/InitUiElements.ts b/InitUiElements.ts index 908eb20..ac28a71 100644 --- a/InitUiElements.ts +++ b/InitUiElements.ts @@ -8,7 +8,6 @@ import {QueryParameters} from "./Logic/Web/QueryParameters"; import StrayClickHandler from "./Logic/Actors/StrayClickHandler"; import SimpleAddUI from "./UI/BigComponents/SimpleAddUI"; import CenterMessageBox from "./UI/CenterMessageBox"; -import {AllKnownLayouts} from "./Customizations/AllKnownLayouts"; import UserBadge from "./UI/BigComponents/UserBadge"; import SearchAndGo from "./UI/BigComponents/SearchAndGo"; import GeoLocationHandler from "./Logic/Actors/GeoLocationHandler"; @@ -22,7 +21,6 @@ import * as L from "leaflet"; import Img from "./UI/Base/Img"; import UserDetails from "./Logic/Osm/OsmConnection"; import Attribution from "./UI/BigComponents/Attribution"; -import MetaTagging from "./Logic/MetaTagging"; import AvailableBaseLayers from "./Logic/Actors/AvailableBaseLayers"; import LayerResetter from "./Logic/Actors/LayerResetter"; import FullWelcomePaneWithTabs from "./UI/BigComponents/FullWelcomePaneWithTabs"; @@ -39,8 +37,6 @@ import SelectedFeatureHandler from "./Logic/Actors/SelectedFeatureHandler"; import LZString from "lz-string"; import {LayoutConfigJson} from "./Customizations/JSON/LayoutConfigJson"; import AttributionPanel from "./UI/BigComponents/AttributionPanel"; -import AllKnownLayers from "./Customizations/AllKnownLayers"; -import LayerConfig from "./Customizations/JSON/LayerConfig"; export class InitUiElements { @@ -211,7 +207,7 @@ export class InitUiElements { dedicatedHashFromLocalStorage.setData(hash); } - let json = {} + let json: {} try{ json = JSON.parse(atob(hash)); } catch (e) { diff --git a/Logic/SimpleMetaTagger.ts b/Logic/SimpleMetaTagger.ts index 743a294..51b518e 100644 --- a/Logic/SimpleMetaTagger.ts +++ b/Logic/SimpleMetaTagger.ts @@ -371,8 +371,9 @@ export default class SimpleMetaTagger { const subElements: UIElement[] = [ new Combine([ "

Metatags

", - "Metatags are extra tags available, in order to display more data or to give better questions.", - "The are calculated automatically on every feature when the data arrives in the webbrowser. This document gives an overview of the available metatags" + "

Metatags are extra tags available, in order to display more data or to give better questions.

", + "

The are calculated automatically on every feature when the data arrives in the webbrowser. This document gives an overview of the available metatags.

", + "

Hint: when using metatags, add the [query parameter](URL_Parameters.md) `debug=true` to the URL. This will include a box in the popup for features which shows all the properties of the object

" ])