can layers be linked?

Guillaume Sueur guillaume.sueur at GEOSIGNAL.FR
Mon Jun 18 00:54:05 PDT 2007


Hi Nelson,

You can use the GROUP attribute for each layer, setting it to the same 
value (ex : GROUP "COMPOSITE")
they'll not be linked, but you'll be able to retrieve thse layers using 
the group name :
$aLayers = $pMap->getLayersIndexByGroup("COMPOSITE")
and then loop on the $aLayers array to switch then on/off

Regards,

Guillaume SUEUR


LITTLE Nelson a écrit :
> Hi,
> 
>  
> 
> I would like to link two layers of different geometry types. 1 layer 
> contains points, the other layer contains lines. The points and lines 
> are shown together to display a composite object on a map. If the user 
> no longer wants to see that composite object on the map then I would 
> like to turn off both of the layers. I am sure I can do it 
> programmatically, but I would like to know if they can be linked in the 
> MapFile?
> 
>  
> 
> Thanks,
> 
> Nelson
> 

-- 

Guillaume SUEUR



More information about the MapServer-users mailing list