X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/164a7c1a5d55f5fa31ca959e44023a5494e7242b..44f6dce2dcac82048e460bb1f2a8fec6fb58b539:/src/handlebar_helpers.js diff --git a/src/handlebar_helpers.js b/src/handlebar_helpers.js index d96923f..de8778b 100644 --- a/src/handlebar_helpers.js +++ b/src/handlebar_helpers.js @@ -14,15 +14,15 @@ function formatOSMType(sType, bExcludeExternal) { } Handlebars.registerHelper({ + formatOSMType: function (sType, bExcludeExternal) { + return formatOSMType(sType, bExcludeExternal); + }, 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' : ''); - }, // { osm_type: 'R', osm_id: 12345 } // relation 12345