From c1ab57d952d0fedb2c2a5aeab8337c9614e9ccd8 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 10 Jun 2024 11:22:19 +0200 Subject: [PATCH] wip: add quick help for overpass importer expressions syntax --- umap/static/umap/js/modules/help.js | 16 ++++++++++++++++ .../static/umap/js/modules/importers/overpass.js | 4 +++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/umap/static/umap/js/modules/help.js b/umap/static/umap/js/modules/help.js index 682bb013..fc46ef0b 100644 --- a/umap/static/umap/js/modules/help.js +++ b/umap/static/umap/js/modules/help.js @@ -144,6 +144,22 @@ const ENTRIES = { `, + + overpassImporter: ` +
+

${translate('Overpass supported expressions')}

+ +
${translate('More info about Overpass syntax')}: https://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide
+
${translate('For more complex needs, see')} https://overpass-turbo.eu/
+
+ `, } export default class Help { diff --git a/umap/static/umap/js/modules/importers/overpass.js b/umap/static/umap/js/modules/importers/overpass.js index 2f14cde7..67b1e130 100644 --- a/umap/static/umap/js/modules/importers/overpass.js +++ b/umap/static/umap/js/modules/importers/overpass.js @@ -5,7 +5,7 @@ import { translate } from '../i18n.js' const TEMPLATE = `

Overpass