]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-html.php
Add options to output polygon in various formats: polygon_geojson=1&polygon_svg=1...
[nominatim.git] / lib / template / search-html.php
index 9269672d7d16e857f4af3028c683615b0ba56d17..7698ebd0de2a66aa399680647ebb1775bf3569ac 100644 (file)
@@ -295,7 +295,8 @@ form{
                                                                        "moveend": mapEventMove
                                                                }
                } );
-                       map.addLayer(new OpenLayers.Layer.OSM.<?php echo CONST_Tile_Default;?>("Default"));
+                       map.addLayer(new OpenLayers.Layer.OSM.<?php echo CONST_Tile_Default;?>("Default",
+                         { attribution : '© <a target="_parent" href="http://www.openstreetmap.org">OpenStreetMap</a> and contributors, under an <a target="_parent" href="http://www.openstreetmap.org/copyright">open license</a>'}));
 
                        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