X-Git-Url: https://git.openstreetmap.org/nominatim-ui.git/blobdiff_plain/586f7f836124af2ea87b5f580c9e92b671ba4b1f..1f80258deb791946182b186b4c90b3aaec2f0d1d:/src/handlebar_helpers.js diff --git a/src/handlebar_helpers.js b/src/handlebar_helpers.js index e07c339..bbb6e16 100644 --- a/src/handlebar_helpers.js +++ b/src/handlebar_helpers.js @@ -251,6 +251,9 @@ Handlebars.registerHelper({ if (iRank <= 30) return 'house / building'; return 'other'; }, + isAdminBoundary: function (aPlace) { + return aPlace.category === 'boundary' && aPlace.type === 'administrative'; + }, tooManyHierarchyLinesWarning: function (aPlace) { if (!aPlace.hierarchy) return '';