From 3998a88d43c1bb22bb3e5c42fb5c6dab33115ac6 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 6 Jun 2024 10:18:44 +0200 Subject: [PATCH] wip: use dt/dd for import formats help box --- umap/static/umap/base.css | 3 +++ umap/static/umap/js/modules/help.js | 36 ++++++++++++++++--------- umap/static/umap/js/modules/importer.js | 10 ++++--- umap/static/umap/js/modules/utils.js | 2 ++ 4 files changed, 35 insertions(+), 16 deletions(-) diff --git a/umap/static/umap/base.css b/umap/static/umap/base.css index a79943b2..a8991951 100644 --- a/umap/static/umap/base.css +++ b/umap/static/umap/base.css @@ -69,6 +69,9 @@ ul { list-style-position:inside; list-style-type:none; } +dt { + font-weight: bold; +} /* ************************************************* */ /* *********************** GRID ******************** */ diff --git a/umap/static/umap/js/modules/help.js b/umap/static/umap/js/modules/help.js index da2bbe42..682bb013 100644 --- a/umap/static/umap/js/modules/help.js +++ b/umap/static/umap/js/modules/help.js @@ -100,30 +100,33 @@ const ENTRIES = { browsable: translate( 'Set it to false to hide this layer from the slideshow, the data browser, the popup navigation…' ), + importMode: translate( + 'When providing an URL, uMap can copy the remote data in a layer, or add this URL as remote source of the layer. In that case, data will always be fetched from that URL, and thus be up to date, but it will not be possible to edit it inside uMap.' + ), importFormats: `
-

GeoJSON

-

${translate('All properties are imported.')}

-

GPX

-

${translate('Properties imported:')}name, desc

-

KML

-

${translate('Properties imported:')}name, description

-

CSV

-

${translate('Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the begining of the header, case insensitive. All other column are imported as properties.')}

-

uMap

-

${translate('Imports all umap data, including layers and settings.')}

+
GeoJSON
+
${translate('All properties are imported.')}
+
GPX
+
${translate('Properties imported:')}name, desc
+
KML
+
${translate('Properties imported:')}name, description
+
CSV
+
${translate('Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the begining of the header, case insensitive. All other column are imported as properties.')}
+
uMap
+
${translate('Imports all umap data, including layers and settings.')}
`, dynamicProperties: `
-

${translate('Dynamic properties')}

+

${translate('Dynamic properties')}

${translate('Use placeholders with feature properties between brackets, eg. {name}, they will be dynamically replaced by the corresponding values.')}

`, textFormatting: `
-

${translate('Text formatting')}

+

${translate('Text formatting')}

- ${translate('Choose the data format')} + ${translate('Choose the data format')}
@@ -30,7 +30,7 @@ const TEMPLATE = `
- ${translate('Choose import mode')} + ${translate('Choose import mode')}