[mapguide-users] Task Pane hidden but still available?

Liglio liglio at pobox.com
Sat Oct 6 07:52:57 PDT 2012


To have the task pane initially hiden, you have to programatically do this.
You can do this using javascript on the load event of the page that contains
the ajaxviewer frame.

function GetMap() {
    var frame;

    frame = document.getElementById("FrameMap")
    if (frame == null) {
        frame = parent.document.getElementById("FrameMap")
        if (frame == null) {
            frame = parent.parent.document.getElementById("FrameMap")
        }
    }

    if (navigator.appName == "Netscape") {
        return frame.contentWindow.document;
    }
    else
    { return frame.contentWindow; }
}

window.onload = function () {

    var map = GetMap();
    var mapFrame = map.mapFrame;

    // Close the tak pane
    map.taskBar.CloseTaskPane();

}



--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Task-Pane-hidden-but-still-available-tp4183755p5006840.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list