]> git.openstreetmap.org Git - rails.git/blobdiff - public/export/embed.html
js changes for 'history' tab
[rails.git] / public / export / embed.html
index ae82eb54a9361af21ce84fb484d43aeb875c237a..af45a6b1f99cea1eb631c0e19a6863d76763a128 100644 (file)
                    attribution: attribution
                 });
                 map.addLayer(mapnik);
                    attribution: attribution
                 });
                 map.addLayer(mapnik);
-            } else {
+            } else if (args.layer == "osmarender") {
                 var osmarender = new OpenLayers.Layer.OSM.Osmarender("Osmarender", {
                    displayOutsideMaxExtent: true,
                    wrapDateLine: true,
                    attribution: attribution
                 });
                 map.addLayer(osmarender);
                 var osmarender = new OpenLayers.Layer.OSM.Osmarender("Osmarender", {
                    displayOutsideMaxExtent: true,
                    wrapDateLine: true,
                    attribution: attribution
                 });
                 map.addLayer(osmarender);
+            } else if (args.layer == "cycle map") {
+                var cyclemap = new OpenLayers.Layer.OSM.CycleMap("Cycle Map", {
+                   displayOutsideMaxExtent: true,
+                   wrapDateLine: true,
+                   attribution: attribution
+                });
+                map.addLayer(cyclemap);
             }
 
             if (args.marker) {
             }
 
             if (args.marker) {