X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/9e2946d9a9ff5a1436403dfe051bf9f8866da178..22a3c929f1cd09efbe0dbd14f845331391e9d9cc:/dist/handlebar_helpers.js diff --git a/dist/handlebar_helpers.js b/dist/handlebar_helpers.js index 6443d37..3ef3a66 100644 --- a/dist/handlebar_helpers.js +++ b/dist/handlebar_helpers.js @@ -12,6 +12,12 @@ function formatOSMType(sType, bExcludeExternal) { } Handlebars.registerHelper({ + shortOSMType: function(sType) { + if (sType === 'node') return 'N'; + if (sType === 'way') return 'W'; + if (sType === 'relation') return 'R'; + return ''; + }, isaddresses_unused: function (aAddressLine) { return ((aAddressLine.isaddress && aAddressLine.isaddress === 'f') ? 'notused' : ''); },