X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/d396505786ce3be105249c740e0d3365beb4ef10..9c0ca064b833ad39eac8ffc2447331d732d1a7d0:/lib/template/search-html.php?ds=sidebyside
diff --git a/lib/template/search-html.php b/lib/template/search-html.php
index 9269672d..7698ebd0 100644
--- a/lib/template/search-html.php
+++ b/lib/template/search-html.php
@@ -295,7 +295,8 @@ form{
"moveend": mapEventMove
}
} );
- map.addLayer(new OpenLayers.Layer.OSM.("Default"));
+ map.addLayer(new OpenLayers.Layer.OSM.("Default",
+ { attribution : '© OpenStreetMap and contributors, under an open license'}));
var layer_style = OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style['default']);
layer_style.fillOpacity = 0.2;
@@ -450,7 +451,11 @@ init();
echo ', '.$aResult['aBoundingBox'][1];
echo ', '.$aResult['aBoundingBox'][2];
echo ', '.$aResult['aBoundingBox'][3];
- if (isset($aResult['aPolyPoints'])) echo ', '.javascript_renderData($aResult['aPolyPoints']);
+ if (isset($aResult['aPolyPoints']))
+ {
+ echo ', ';
+ echo javascript_renderData($aResult['aPolyPoints']);
+ }
echo ');'."\n";
}
else