Default export format based on selected base layer.

This commit is contained in:
Tom Hughes 2008-04-17 23:10:35 +00:00
parent 083cb994d7
commit b7d8360a27

View file

@ -85,12 +85,20 @@
map.events.register("moveend", map, mapMoved);
$("viewanchor").className = "";
$("exportanchor").className = "active";
openSidebar({ onclose: stopExport });
updateRegion(map.getExtent());
if (map.baseLayer.name == "Mapnik") {
$("format_mapnik").checked = true;
} else if (map.baseLayer.name == "Osmarender") {
$("format_osmarender").checked = true;
}
formatChanged();
$("viewanchor").className = "";
$("exportanchor").className = "active";
}
function stopExport() {