X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/10df3d85651e7f843ffc6d2b89f029d47dcd1971..fa2e6320a7bec8c5f99e1e4d70f88ff9de969da7:/public/export/embed.html
diff --git a/public/export/embed.html b/public/export/embed.html
index 7e61728cc..a9c033656 100644
--- a/public/export/embed.html
+++ b/public/export/embed.html
@@ -40,22 +40,15 @@
projection: new OpenLayers.Projection("EPSG:900913")
});
- var attribution = '(C) OpenStreetMap and contributors, CC-BY-SA';
+ var attribution = '© OpenStreetMap and contributors, under an open license';
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);
}
@@ -101,7 +94,7 @@
if (size.h > 320) {
map.addControl(new OpenLayers.Control.PanZoomBar());
} else {
- map.addControl(new OpenLayers.Control.PanZoom());
+ map.addControl(new OpenLayers.Control.Zoom());
}
}
// -->