[mapserver-users] How to group layers

randy james rjames57 at yahoo.com
Thu Jul 25 11:58:49 EDT 2002


I found that if you give the layers the same name you
can turn them on and off using the name. But its not
the correct way :-) Like this:
 
 
 LAYER
   NAME "rail"
   DATA "Rail/rail_line_t2_polyline"
   STATUS OFF
   Type LINE
   CLASS
     Name "MTR KCR"
     Color 0 0 0
#   END #end of class object
# END #end of layer object
 
 LAYER
   NAME "rail"
   DATA "Rail/rail_line_t3_polyline"
   STATUS OFF
   Type LINE
   CLASS
     Name "MTR KCR"
     Color 0 0 0
   END #end of class object
 END #end of layer object

than in the template file

<input type="checkbox" name="rail" value="rail"
[rail_check]>MTR KCR

Randy

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com



More information about the mapserver-users mailing list