$("#mapnik_scale").change(mapnikSizeChanged);
- openSidebar({ onclose: stopExport });
+ openSidebar();
if (map.baseLayer.name == "Mapnik") {
$("#format_mapnik").prop("checked", true);
formatChanged();
setBounds(map.getExtent());
- $("#viewanchor").removeClass("active");
- $("#exportanchor").addClass("active");
+ $("body").removeClass("site-index").addClass("site-export");
- function stopExport() {
- $("#viewanchor").addClass("active");
- $("#exportanchor").removeClass("active");
+ $("#sidebar").one("closed", function () {
+ $("body").removeClass("site-export").addClass("site-index");
clearBox();
clearMarker();
map.events.unregister("moveend", map, mapMoved);
map.events.unregister("changebaselayer", map, htmlUrlChanged);
map.removeLayer(vectors);
- }
+ });
function getMercatorBounds() {
var bounds = new OpenLayers.Bounds($("#minlon").val(), $("#minlat").val(),