X-Git-Url: https://git.openstreetmap.org/nominatim-ui.git/blobdiff_plain/8cb098cd2f404a1b3f2634a2c00e253a3c438d98..04224d9aa3b35e5adc455fde1cc081cf3d4c94bd:/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' : ''); },