diff --git a/lang/ast.json b/lang/ast.json index 27d9cca2..94f8c5be 100644 --- a/lang/ast.json +++ b/lang/ast.json @@ -14,6 +14,8 @@ "export:OSMJSON": "", "export:OSMXML": "", "facilities": "", + "filter:title": "", + "filter:type": "", "header:attributes": "", "header:export": "", "header:osm_meta": "", diff --git a/lang/ca.json b/lang/ca.json index d02858c3..ea2c9789 100644 --- a/lang/ca.json +++ b/lang/ca.json @@ -14,6 +14,8 @@ "export:OSMJSON": "", "export:OSMXML": "", "facilities": "", + "filter:title": "", + "filter:type": "", "header:attributes": "", "header:export": "", "header:osm_meta": "", diff --git a/lang/cs.json b/lang/cs.json index 0f5691af..f403a1bd 100644 --- a/lang/cs.json +++ b/lang/cs.json @@ -14,6 +14,8 @@ "export:OSMJSON": "", "export:OSMXML": "", "facilities": "", + "filter:title": "", + "filter:type": "", "header:attributes": "", "header:export": "", "header:osm_meta": "", diff --git a/lang/da.json b/lang/da.json index ab48ef81..94e60b05 100644 --- a/lang/da.json +++ b/lang/da.json @@ -14,6 +14,8 @@ "export:OSMJSON": "", "export:OSMXML": "", "facilities": "", + "filter:title": "", + "filter:type": "", "header:attributes": "", "header:export": "", "header:osm_meta": "", diff --git a/lang/de.json b/lang/de.json index e850b7e5..07921170 100644 --- a/lang/de.json +++ b/lang/de.json @@ -17,6 +17,8 @@ "export:OSMJSON": "", "export:OSMXML": "", "facilities": "Einrichtungen", + "filter:title": "Titel", + "filter:type": "Typ", "header:attributes": "Attribute", "header:export": "Export", "header:osm_meta": "OSM Meta", diff --git a/lang/el.json b/lang/el.json index 4e139a0d..1c952273 100644 --- a/lang/el.json +++ b/lang/el.json @@ -14,6 +14,8 @@ "export:OSMJSON": "", "export:OSMXML": "", "facilities": "", + "filter:title": "", + "filter:type": "", "header:attributes": "", "header:export": "", "header:osm_meta": "", diff --git a/lang/en.json b/lang/en.json index 0f775070..65c1068f 100644 --- a/lang/en.json +++ b/lang/en.json @@ -17,6 +17,8 @@ "export:OSMJSON": "Download as OSM JSON", "export:OSMXML": "Download as OSM XML", "facilities": "Facilities", + "filter:title": "Title", + "filter:type": "Type", "header:attributes": "Attributes", "header:export": "Export", "header:osm_meta": "OSM Meta", diff --git a/lang/es.json b/lang/es.json index defdb6f4..b0678366 100644 --- a/lang/es.json +++ b/lang/es.json @@ -14,6 +14,8 @@ "export:OSMJSON": "", "export:OSMXML": "", "facilities": "", + "filter:title": "", + "filter:type": "", "header:attributes": "", "header:export": "", "header:osm_meta": "", diff --git a/lang/et.json b/lang/et.json index 864c5004..73660c37 100644 --- a/lang/et.json +++ b/lang/et.json @@ -14,6 +14,8 @@ "export:OSMJSON": "", "export:OSMXML": "", "facilities": "", + "filter:title": "", + "filter:type": "", "header:attributes": "", "header:export": "", "header:osm_meta": "", diff --git a/lang/fr.json b/lang/fr.json index f1ce4d26..1508c019 100644 --- a/lang/fr.json +++ b/lang/fr.json @@ -14,6 +14,8 @@ "export:OSMJSON": "Format OSM JSON", "export:OSMXML": "Format OSM XML", "facilities": "Aménagements", + "filter:title": "", + "filter:type": "", "header:attributes": "Attributs", "header:export": "Export", "header:osm_meta": "Métadonnées OSM", diff --git a/lang/hu.json b/lang/hu.json index 2ad897aa..97a13728 100644 --- a/lang/hu.json +++ b/lang/hu.json @@ -14,6 +14,8 @@ "export:OSMJSON": "", "export:OSMXML": "", "facilities": "Létesítmények", + "filter:title": "", + "filter:type": "", "header:attributes": "Tulajdonságok", "header:export": "Exportálás", "header:osm_meta": "OSM metaadatok", diff --git a/lang/it.json b/lang/it.json index 022b3689..fca44dee 100644 --- a/lang/it.json +++ b/lang/it.json @@ -14,6 +14,8 @@ "export:OSMJSON": "", "export:OSMXML": "", "facilities": "", + "filter:title": "", + "filter:type": "", "header:attributes": "", "header:export": "", "header:osm_meta": "", diff --git a/lang/ja.json b/lang/ja.json index fdbed7a0..3bdd90d6 100644 --- a/lang/ja.json +++ b/lang/ja.json @@ -14,6 +14,8 @@ "export:OSMJSON": "", "export:OSMXML": "", "facilities": "", + "filter:title": "", + "filter:type": "", "header:attributes": "", "header:export": "", "header:osm_meta": "", diff --git a/lang/nl.json b/lang/nl.json index 840c7223..993522e1 100644 --- a/lang/nl.json +++ b/lang/nl.json @@ -14,6 +14,8 @@ "export:OSMJSON": "", "export:OSMXML": "", "facilities": "", + "filter:title": "", + "filter:type": "", "header:attributes": "", "header:export": "", "header:osm_meta": "", diff --git a/lang/pl.json b/lang/pl.json index 55287109..000dc533 100644 --- a/lang/pl.json +++ b/lang/pl.json @@ -14,6 +14,8 @@ "export:OSMJSON": "", "export:OSMXML": "", "facilities": "", + "filter:title": "", + "filter:type": "", "header:attributes": "", "header:export": "Eksport", "header:osm_meta": "", diff --git a/lang/pt-br.json b/lang/pt-br.json index 227f8177..17a9f7c9 100644 --- a/lang/pt-br.json +++ b/lang/pt-br.json @@ -17,6 +17,8 @@ "export:OSMJSON": "Baixar como OSMJSON", "export:OSMXML": "Baixar como OSMXML", "facilities": "Instalações", + "filter:title": "", + "filter:type": "", "header:attributes": "Atributos", "header:export": "Exportar", "header:osm_meta": "OSM Meta", diff --git a/lang/pt.json b/lang/pt.json index 20803c68..eb307cf0 100644 --- a/lang/pt.json +++ b/lang/pt.json @@ -17,6 +17,8 @@ "export:OSMJSON": "", "export:OSMXML": "", "facilities": "Instalações", + "filter:title": "", + "filter:type": "", "header:attributes": "Atributos", "header:export": "Exportar", "header:osm_meta": "OSM Meta", diff --git a/lang/ro.json b/lang/ro.json index 8f91ad7a..aaf0da23 100644 --- a/lang/ro.json +++ b/lang/ro.json @@ -14,6 +14,8 @@ "export:OSMJSON": "", "export:OSMXML": "", "facilities": "", + "filter:title": "", + "filter:type": "", "header:attributes": "", "header:export": "", "header:osm_meta": "", diff --git a/lang/ru.json b/lang/ru.json index 8623600e..c94e8287 100644 --- a/lang/ru.json +++ b/lang/ru.json @@ -14,6 +14,8 @@ "export:OSMJSON": "", "export:OSMXML": "", "facilities": "", + "filter:title": "", + "filter:type": "", "header:attributes": "", "header:export": "", "header:osm_meta": "", diff --git a/lang/sr.json b/lang/sr.json index 283571bd..1a9143c3 100644 --- a/lang/sr.json +++ b/lang/sr.json @@ -14,6 +14,8 @@ "export:OSMJSON": "", "export:OSMXML": "", "facilities": "", + "filter:title": "", + "filter:type": "", "header:attributes": "", "header:export": "", "header:osm_meta": "", diff --git a/lang/template.json b/lang/template.json index 6dd14dd4..2a09f39d 100644 --- a/lang/template.json +++ b/lang/template.json @@ -14,6 +14,8 @@ "export:OSMJSON": "", "export:OSMXML": "", "facilities": "", + "filter:title": "", + "filter:type": "", "header:attributes": "", "header:export": "", "header:osm_meta": "", diff --git a/lang/uk.json b/lang/uk.json index 85cfce30..056d3078 100644 --- a/lang/uk.json +++ b/lang/uk.json @@ -14,6 +14,8 @@ "export:OSMJSON": "", "export:OSMXML": "", "facilities": "", + "filter:title": "", + "filter:type": "", "header:attributes": "", "header:export": "", "header:osm_meta": "", diff --git a/src/CategoryOverpass.js b/src/CategoryOverpass.js index 8f4e0207..b5d1a002 100644 --- a/src/CategoryOverpass.js +++ b/src/CategoryOverpass.js @@ -563,5 +563,7 @@ CategoryOverpass.prototype.allMapFeatures = function (callback) { callback(null, Object.values(this.layer.mainlayer.visibleFeatures)) } +CategoryOverpass.defaultValues = defaultValues + OpenStreetBrowserLoader.registerType('overpass', CategoryOverpass) module.exports = CategoryOverpass diff --git a/src/CategoryOverpassFilter.js b/src/CategoryOverpassFilter.js index c595c52b..566f62dc 100644 --- a/src/CategoryOverpassFilter.js +++ b/src/CategoryOverpassFilter.js @@ -4,6 +4,18 @@ const tabs = require('modulekit-tabs') const state = require('./state') const Filter = require('overpass-frontend').Filter const getPathFromJSON = require('./getPathFromJSON') +const CategoryOverpass = require('./CategoryOverpass') + +CategoryOverpass.defaultValues.filter = { + title: { + type: 'text', + key: [ 'name', 'name:*', 'operator', 'operator:*', 'ref', 'ref:*' ], + name: '{{ trans("filter:title") }}', + op: 'strsearch', + weight: -1, + show_default: true + } +} class CategoryOverpassFilter { constructor (master) {