]> git.openstreetmap.org Git - rails.git/blobdiff - public/export/embed.html
Merge branch 'master' into openstreetbugs
[rails.git] / public / export / embed.html
index 35b93a2acdbb3ce59452cfd7cf9dbfb092663fb1..43678db0382fbec905918d23b9cb6a64c8abee32 100644 (file)
@@ -20,8 +20,8 @@
             bottom: 3px!important;
         }
     </style>
             bottom: 3px!important;
         }
     </style>
-    <script src="http://openstreetmap.org/openlayers/OpenLayers.js" type="text/javascript"></script>
-    <script src="http://openstreetmap.org/openlayers/OpenStreetMap.js" type="text/javascript"></script>
+    <script src="/openlayers/OpenLayers.js" type="text/javascript"></script>
+    <script src="/openlayers/OpenStreetMap.js" type="text/javascript"></script>
     <script type="text/javascript">
     <!--
         var map, layer;
     <script type="text/javascript">
     <!--
         var map, layer;
@@ -56,7 +56,7 @@
                    attribution: attribution
                 });
                 map.addLayer(osmarender);
                    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,
                 var cyclemap = new OpenLayers.Layer.OSM.CycleMap("Cycle Map", {
                    displayOutsideMaxExtent: true,
                    wrapDateLine: true,