diff --git a/umap/static/umap/js/umap.core.js b/umap/static/umap/js/umap.core.js index 9d7ec504..4981086b 100644 --- a/umap/static/umap/js/umap.core.js +++ b/umap/static/umap/js/umap.core.js @@ -541,7 +541,7 @@ U.Help = L.Class.extend({ slugKey: L._('The name of the property to use as feature unique identifier.'), filterKey: L._('Comma separated list of properties to use when filtering features'), facetKey: L._( - 'Comma separated list of properties to use for facet search (eg.: mykey,otherkey). To control label, add it after a | (eg.: mykey|My Key,otherkey|Other Key). To control type, add it after another | (eg.: mykey|My Key|checkbox,otherkey|Other Key|date)' + 'Comma separated list of properties to use for facet search (eg.: mykey,otherkey). To control label, add it after a | (eg.: mykey|My Key,otherkey|Other Key). To control data type, add it after another | (eg.: mykey|My Key|enum,otherkey|Other Key|date)' ), interactive: L._( 'If false, the polygon or line will act as a part of the underlying map.' diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index eba08365..bdd2959d 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -1236,7 +1236,7 @@ U.Map = L.Map.extend({ { handler: 'Input', helpEntries: 'facetKey', - placeholder: L._('Example: key1,key2|Label 2,key3|Label 3|checkbox'), + placeholder: L._('Example: key1,key2|Label 2,key3|Label 3|enum'), label: L._('Facet keys'), }, ], @@ -1850,7 +1850,7 @@ U.Map = L.Map.extend({ const els = curr.split('|') acc[els[0]] = { "label": els[1] || els[0], - "type": els[2] || "checkbox" + "type": els[2] || "enum" } return acc }, {})