diff --git a/lib/utils/gazetteer.mjs b/lib/utils/gazetteer.mjs index a19871e3fa..698eafb60e 100644 --- a/lib/utils/gazetteer.mjs +++ b/lib/utils/gazetteer.mjs @@ -15,6 +15,7 @@ export function datasets(term, gazetteer) { label: gazetteer.label, title: gazetteer.title, limit: gazetteer.limit, + no_result: gazetteer.no_result, leading_wildcard: gazetteer.leading_wildcard, callback: gazetteer.callback, maxZoom: gazetteer.maxZoom, @@ -69,10 +70,11 @@ export function datasets(term, gazetteer) { // No results if (!e.target.response) { + if (dataset.no_result === null) return; gazetteer.list.append(mapp.utils.html.node`
  • ${dataset.title || layer.name} - ${mapp.dictionary.no_results}`) + ${dataset.no_result || mapp.dictionary.no_results}`) return; }