X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/10df3d85651e7f843ffc6d2b89f029d47dcd1971..c19d36653d7337dfdfd802dab1fa34b7293b0806:/public/export/embed.html diff --git a/public/export/embed.html b/public/export/embed.html index 7e61728cc..402f0410b 100644 --- a/public/export/embed.html +++ b/public/export/embed.html @@ -42,20 +42,13 @@ var attribution = '(C) OpenStreetMap and contributors, CC-BY-SA'; var args = OpenLayers.Util.getParameters(); - if (!args.layer || args.layer == "mapnik") { + if (!args.layer || args.layer == "mapnik" || args.layer == "osmarender") { var mapnik = new OpenLayers.Layer.OSM.Mapnik("Mapnik", { displayOutsideMaxExtent: true, wrapDateLine: true, attribution: attribution }); map.addLayer(mapnik); - } else if (args.layer == "osmarender") { - var osmarender = new OpenLayers.Layer.OSM.Osmarender("Osmarender", { - displayOutsideMaxExtent: true, - wrapDateLine: true, - attribution: attribution - }); - map.addLayer(osmarender); } else if (args.layer == "cyclemap" || args.layer == "cycle map") { var cyclemap = new OpenLayers.Layer.OSM.CycleMap("Cycle Map", { displayOutsideMaxExtent: true, @@ -78,7 +71,7 @@ "http://otile4.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.png"], { displayOutsideMaxExtent: true, wrapDateLine: true, - attribution: "Tiles courtesy of MapQuest ", + attribution: "Tiles courtesy of MapQuest " }); map.addLayer(mapquestmap); }