[mapguide-users] Get selected layers from server side

Jim O'Leary joleary.public at gmail.com
Fri Jan 4 21:13:22 EST 2008


Is it possible to get a list of the map's selected layers from the server
side? 

I know I can get this by making an MgSelection and passing the selection XML
from the client to the server program, like:

$selection = new MgSelection($map,$_REQUEST['selectionXML']);

However, I don't want to pass a big selection XML string to the server
program, as I am passing by GET and the selection XML could be greater than
the browser handles. 

If I make the selection object without including the selection XML, like

$selection = new MgSelection($map);
$selectedLayers = $selection->GetLayers();
$numberLayers = $selectedLayers->GetCount();

PHP tells me that $selectedLayers is not an object.

Thanks.


-- 
View this message in context: http://www.nabble.com/Get-selected-layers-from-server-side-tp14628979s16610p14628979.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list