]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/details-html.php
switch attributions to ODbL
[nominatim.git] / lib / template / details-html.php
index c54c3c225f6442336256d22a1ade2a1d0e001511..3f416fca3a4b7ff7b0156a6f8bcc96200e0020f2 100644 (file)
@@ -53,7 +53,8 @@ body {
                 projection: new OpenLayers.Projection("EPSG:900913"),
                 displayProjection: new OpenLayers.Projection("EPSG:4326")
                } );
-                       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;