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: `
${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.')}
${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('*single star for italic*')}
${translate('**double star for bold**')}
@@ -170,6 +173,7 @@ export default class Help {
show(entries) {
const container = DomUtil.add('div')
+ DomUtil.createTitle(container, translate('Help'))
// Special dynamic case. Do we still think this dialog is usefull ?
if (entries == 'edit') {
DomUtil.element({
@@ -209,9 +213,15 @@ export default class Help {
return button
}
+ parse(container) {
+ for (const element of container.querySelectorAll('[data-help]')) {
+ this.button(element, element.dataset.help.split(','))
+ }
+ }
+
_buildEditEntry() {
const container = DomUtil.create('div', '')
- const title = DomUtil.create('h3', '', container)
+ const title = DomUtil.create('h4', '', container)
const actionsContainer = DomUtil.create('ul', 'umap-edit-actions', container)
const addAction = (action) => {
const actionContainer = DomUtil.add('li', '', actionsContainer)
diff --git a/umap/static/umap/js/modules/importer.js b/umap/static/umap/js/modules/importer.js
index 479dce3b..22317817 100644
--- a/umap/static/umap/js/modules/importer.js
+++ b/umap/static/umap/js/modules/importer.js
@@ -18,7 +18,7 @@ const TEMPLATE = `