[mapserver-users] Layer - Group tag - deny single use

Stephen Woodbridge woodbri at swoodbridge.com
Tue May 22 05:52:31 PDT 2012


On 5/22/2012 7:26 AM, Andrea Peri wrote:
> Hi,
> I'm study-ing the
> Layer grouping directive (GROUP).
> It is very nice because it allow to use as an unique layer two or more
> layers (rasters and vectors).
>
> I need also to avoid to any user to request a single layer of a group.
>
> For exmaple:
> if there a group "A" compose of layer-1 + layer-2.
>
> An user that request "A" will receive a map with layer-1 + layer2.
>
> Is possible to avoid an user could call singolarly "layer1" or "layer-2" ?

Look at the REQUIRES tag, You should be able to make layer1 to require 
layer2 and vica versa so it will not display one without the other.

-Steve W



More information about the MapServer-users mailing list