Default export format based on selected base layer.
This commit is contained in:
parent
083cb994d7
commit
b7d8360a27
1 changed files with 11 additions and 3 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue