mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
also show line geometries on search page
This commit is contained in:
@@ -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]];
|
var bounds = [[result.aBoundingBox[0]*1,result.aBoundingBox[2]*1], [result.aBoundingBox[1]*1,result.aBoundingBox[3]*1]];
|
||||||
map.fitBounds(bounds);
|
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);
|
var layer = omnivore.wkt.parse(result.astext);
|
||||||
layerGroup.addLayer(layer);
|
layerGroup.addLayer(layer);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user