[mapguide-users] Re: How can i know the layers of group, mg 2.1?

alba a.penitente at gepaspa.com
Tue Mar 2 06:06:20 EST 2010


hi zspitzer,

I use php
...........
$layers = $map->GetLayers();
$layerGroupCollection = $map->GetLayerGroups();
 for ($j = 0; $j < $layerGroupCollection->GetCount(); $j++)
{
   $layerGroup = $layerGroupCollection->GetItem($j);
   for ($i = 0; $i < $layers->GetCount(); $i++){

	 $layer = $layers->GetItem($i);
	 $piano=$layer->GetName();
               $layer->GetGroup();   // how do I know the group of $layer
??????????????

   }

}


-- 
View this message in context: http://n2.nabble.com/How-can-i-know-the-layers-of-group-mg-2-1-tp4660248p4660329.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list