X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/3e76cfc321df3c4121b410e825b11d5d6d4b6823..d092630e94af1e5c38c8cb22335b939f6759ab7d:/src/lib/helpers.js?ds=inline diff --git a/src/lib/helpers.js b/src/lib/helpers.js index ea0e0c5..0099d83 100644 --- a/src/lib/helpers.js +++ b/src/lib/helpers.js @@ -17,7 +17,7 @@ export function formatOSMType(sType, bExcludeExternal) { // w123 => ['W', 123] export function identifyLinkInQuery(query) { if (!query) return undefined; - const m = query.match(/\/(relation|way|node)\/(\d+)/) || query.match(/^([nwr])(\d+)$/i); + const m = query.match(/\/(relation|way|node)\/(-?\d+)/) || query.match(/^([nwr])(-?\d+)$/i); if (!m) return undefined; return [m[1][0].toUpperCase(), Number(m[2])]; } @@ -136,12 +136,12 @@ export function zoomLevels() { /* 9 */ '', /* 10 */ 'City', /* 11 */ '', - /* 12 */ 'Town / Village', - /* 13 */ '', - /* 14 */ 'Suburb', - /* 15 */ '', - /* 16 */ 'Street', - /* 17 */ '', + /* 12 */ 'Town / Borough', + /* 13 */ 'Village / Suburb', + /* 14 */ 'Neighbourhood', + /* 15 */ 'Locality', + /* 16 */ 'Major Street', + /* 17 */ 'Minor Street', /* 18 */ 'Building' ]; return aZoomLevels;