Layer.group {Scanned}

Siki Zoltan siki at AGT.BME.HU
Tue Feb 6 12:25:46 PST 2007


Hi Fabio,

Try something like this

$poGroup = $gpoMap->getLayersIndexByGroup($item);
foreach ($poGroup as $item1)
{
  $poLayer = $gpoMap->getlayer($item1);
  // turn on the layer
  $poLayer->set("status", 1);
}

Bye
Zoltan

On Tue, 6 Feb 2007, Fabio Leme de Almeida wrote:

> Hello All,
> 
>  
> 
> I'm using LayerObj.group property. How can I get all Layers, within a
> specific group ?
> 
>  
> 
> If I use the method getLayersIndexByGroup() what it'll returns ?
> 
>  
> 
> And if no LayerObj.group property is specified. Is a nullable value ?
> 
>  
> 
> Thank's
> 
>  
> 
> Fabio Leme
> 
>  
> 
> 



More information about the MapServer-users mailing list