From 96ea3d3905fbd8d94717f9597ec4ba59f9633d53 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Wed, 17 May 2023 13:50:24 +0200 Subject: [PATCH] Refactoring: fix metatagging --- Logic/ExtraFunctions.ts | 6 +++--- Logic/MetaTagging.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Logic/ExtraFunctions.ts b/Logic/ExtraFunctions.ts index e2c129aea..a4862a763 100644 --- a/Logic/ExtraFunctions.ts +++ b/Logic/ExtraFunctions.ts @@ -92,7 +92,7 @@ class OverlapFunc implements ExtraFunction { "The returned value is `{ feat: GeoJSONFeature, overlap: number}[]` where `overlap` is the overlapping surface are (in m²) for areas, the overlapping length (in meter) if the current feature is a line or `undefined` if the current feature is a point.", "The resulting list is sorted in descending order by overlap. The feature with the most overlap will thus be the first in the list.", "", - "For example to get all objects which overlap or embed from a layer, use `_contained_climbing_routes_properties=feat.overlapWith('climbing_route')`", + "For example to get all objects which overlap or embed from a layer, use `_contained_climbing_routes_properties=overlapWith(feat)('climbing_route')`", "", "Also see [enclosingFeatures](#enclosingFeatures) which can be used to get all objects which fully contain this feature", ].join("\n") @@ -157,7 +157,7 @@ class IntersectionFunc implements ExtraFunction { continue } for (const otherFeature of otherLayers) { - const intersections = GeoOperations.LineIntersections(feat, otherFeature) + const intersections = GeoOperations.LineIntersections(feat, otherFeature) if (intersections.length === 0) { continue } @@ -458,7 +458,7 @@ export class ExtraFunctions { "`area` contains the surface area (in square meters) of the object", "`lat` and `lon` contain the latitude and longitude", ]), - "Some advanced functions are available on **feat** as well:", + "Some advanced functions are available as well. Due to technical reasons, they should be used as `funcname(feat)(arguments)`.", ]) .SetClass("flex-col") .AsMarkdown() diff --git a/Logic/MetaTagging.ts b/Logic/MetaTagging.ts index d3df3da43..efa60e53d 100644 --- a/Logic/MetaTagging.ts +++ b/Logic/MetaTagging.ts @@ -50,7 +50,7 @@ export default class MetaTagging { // No features to handle return } - console.trace( + console.debug( "Recalculating metatags for layer ", layer.id, "due to a change in the upstream features. Contains ",