From 18eb696c23ebf414a0296e33cb0e3e84d3ae7bce Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Sun, 20 Jun 2021 03:07:12 +0200 Subject: [PATCH] Documentation format imrovement --- Logic/ExtraFunction.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Logic/ExtraFunction.ts b/Logic/ExtraFunction.ts index 51f4ff9f93..a8b5aca339 100644 --- a/Logic/ExtraFunction.ts +++ b/Logic/ExtraFunction.ts @@ -23,13 +23,13 @@ Before proceeding, some warnings: In the layer object, add a field calculatedTags, e.g.: -
+\`\`\` "calculatedTags": [ "_someKey=javascript-expression", "name=feat.properties.name ?? feat.properties.ref ?? feat.properties.operator", "_distanceCloserThen3Km=feat.distanceTo( some_lon, some_lat) < 3 ? 'yes' : 'no'" ] -
+\`\`\` The above code will be executed for every feature in the layer. The feature is accessible as feat and is an amended geojson object: - area contains the surface area (in square meters) of the object