]> git.openstreetmap.org Git - nominatim.git/commitdiff
also show line geometries on search page
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 8 Feb 2016 22:06:27 +0000 (23:06 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 8 Feb 2016 22:06:27 +0000 (23:06 +0100)
website/js/nominatim-ui.js

index be10807453161cd96e4c1dcd516bf9bf44ebaf59..3e0aabd2370fba5b52627ed37bd64b7e8ec38b1c 100644 (file)
@@ -117,7 +117,7 @@ jQuery(document).on('ready', function(){
 
                        var bounds = [[result.aBoundingBox[0]*1,result.aBoundingBox[2]*1], [result.aBoundingBox[1]*1,result.aBoundingBox[3]*1]];
                        map.fitBounds(bounds);
-                       if (result.astext && result.astext.match(/POLY/) ){
+                       if (result.astext && result.astext.match(/(POLY)|(LINE)/) ){
                                var layer = omnivore.wkt.parse(result.astext);
                                layerGroup.addLayer(layer);
                        }