]> git.openstreetmap.org Git - rails.git/commitdiff
Consider addr:housename as a name source for features
authorTom Hughes <tom@compton.nu>
Sun, 9 Mar 2014 23:02:25 +0000 (23:02 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 16 Mar 2014 16:18:13 +0000 (16:18 +0000)
app/assets/javascripts/index/query.js

index 02f5e1994676703833679cd25d431fccbf55fe46..b9aa4f4d051c0459095ef3343ad01b0bd1fdca30 100644 (file)
@@ -113,6 +113,8 @@ OSM.Query = function(map) {
       return tags["name"];
     } else if (tags["ref"]) {
       return tags["ref"];
+    } else if (tags["addr:housename"]) {
+      return tags["addr:housename"];
     } else if (tags["addr:housenumber"] && tags["addr:street"]) {
       return tags["addr:housenumber"] + " " + tags["addr:street"];
     } else {