]> git.openstreetmap.org Git - rails.git/blobdiff - public/export/embed.html
Merge branch 'openID' of git://git.openstreetmap.org/rails into openid
[rails.git] / public / export / embed.html
index 55d11ebbe9fc5e6a826e37b0e6ea4942508173bd..bba67025572fc05642d44511f876b51032b2c5a5 100644 (file)
@@ -3,6 +3,15 @@
   <head>
     <title>OpenStreetMap Embedded</title>
     <style type="text/css">
+        html {
+            width: 100%;
+            height: 100%;
+       }
+        body {
+            width: 100%;
+            height: 100%;
+            margin: 0px;
+        }
         #map {
             width: 100%;
             height: 100%;
@@ -31,7 +40,7 @@
               projection: new OpenLayers.Projection("EPSG:900913")
             });
 
-            var attribution = 'Data by <a target="_parent" href="http://www.openstreetmap.org">OpenStreetMap</a>';
+            var attribution = '(C) <a target="_parent" href="http://www.openstreetmap.org">OpenStreetMap</a> and contributors, <a target="_parent" href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>';
             var args = OpenLayers.Util.getParameters();
             if (!args.layer || args.layer == "mapnik") {
                 var mapnik = new OpenLayers.Layer.OSM.Mapnik("Mapnik", {
@@ -47,7 +56,7 @@
                    attribution: attribution
                 });
                 map.addLayer(osmarender);
-            } else if (args.layer == "cycle map") {
+            } else if (args.layer == "cyclemap" || args.layer == "cycle map") {
                 var cyclemap = new OpenLayers.Layer.OSM.CycleMap("Cycle Map", {
                    displayOutsideMaxExtent: true,
                    wrapDateLine: true,