From 60dee5e9995f55e644bd444e390183cedf634024 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Tue, 11 May 2021 11:03:28 +0200 Subject: [PATCH] Improve documentation --- Docs/CalculatedTags.md | 4 ++-- Logic/ExtraFunction.ts | 2 +- Logic/SimpleMetaTagger.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Docs/CalculatedTags.md b/Docs/CalculatedTags.md index d04b32a63..766db78c0 100644 --- a/Docs/CalculatedTags.md +++ b/Docs/CalculatedTags.md @@ -5,7 +5,7 @@ Metatags are extra tags available, in order to display more data or to give bett 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 +**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 ### \_lat, \_lon @@ -88,4 +88,4 @@ Given either a list of geojson features or a single layer name, gives the single ### memberships -Gives a list of {role: string, relation: Relation}-objects, containing all the relations that this feature is part of. For example: \`\_part\_of\_walking\_routes=feat.memberships().map(r => r.relation.tags.name).join(';')\` \ No newline at end of file +Gives a list of `{role: string, relation: Relation}`\-objects, containing all the relations that this feature is part of. For example: `_part_of_walking_routes=feat.memberships().map(r => r.relation.tags.name).join(';')` \ No newline at end of file diff --git a/Logic/ExtraFunction.ts b/Logic/ExtraFunction.ts index cfb4ed8ee..e67edc7fb 100644 --- a/Logic/ExtraFunction.ts +++ b/Logic/ExtraFunction.ts @@ -117,7 +117,7 @@ Some advanced functions are available on feat as well: private static readonly Memberships = new ExtraFunction( "memberships", - "Gives a list of {role: string, relation: Relation}-objects, containing all the relations that this feature is part of. \n\nFor example: `_part_of_walking_routes=feat.memberships().map(r => r.relation.tags.name).join(';')`", + "Gives a list of {role: string, relation: Relation}-objects, containing all the relations that this feature is part of. \n\nFor example: _part_of_walking_routes=feat.memberships().map(r => r.relation.tags.name).join(';')", [], (params, feature) => { return () => params.relations ?? []; diff --git a/Logic/SimpleMetaTagger.ts b/Logic/SimpleMetaTagger.ts index f350be44d..df40a9195 100644 --- a/Logic/SimpleMetaTagger.ts +++ b/Logic/SimpleMetaTagger.ts @@ -381,7 +381,7 @@ export default class SimpleMetaTagger { "

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

" + "

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

" ])