Actually, the proper way would be to iterate the result of
mapWidget.getAllMaps(), and call getSessionID() on the Fusion.Layer whose
"arch" property is "MapGuide".

The aMaps array in the map widget is heterogeneous because we have to
accomodate MapServer/Bing/Google/OSM and such layers do not have a concept
of a session id (MapServer maybe, but probably called something different)

Rough code sample:

function getMapGuideSessionID(mapWidget) {
    var flayers = mapWidget.getAllMaps();
    for (var i = 0; i < flayers.length; i++) {
         if (flayers[i].arch == "MapGuide") {
              return flayers[i].getSessionID();
         }
    }
    return "";
}

- Jackie



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/getSessionID-Fusion-in-MGOS-2-4-tp5010520p5010665.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to