[mapserver-dev] A thought about a CGI parameter add, basically a switch for turning a default layer off.

Bob Basques Bob.Basques at ci.stpaul.mn.us
Tue Feb 1 15:43:02 EST 2011


All, 

Is this doable? 

Was wondering about a mechanism to turn a DEFAULT layer off via CGI, something like "layers=-centerlines", where the negative sign ( - ) would be used to indicate that a default layer should NOT be drawn for a CGI request. 

In short terms, could adding a negative sign ( - ) to the front of a layer name to NOT draw that layer be easily implemented in the CGI calls? 

WARNING:  If the above is possible, the next question would be to get a list of the layers that are available in a MAPFILE (like GetCapabilities) for drawing.  And don't say use WMS, otherwise you should get rid of the LEGEND generation in MapServer too, since that can be done via WMS as well.  :c)   I also have an inkling that having the ability to poll the mapfile for the layers available might be an interesting capability to add in that would allow for some interesting user GUI elements to be built around. 

--------- 

Here is my use case (if needed): 

Say I have a centerline file of a street network for a map, and then add in a Aerial photo background, I want to turn the centerlines off, but keep the labels as an overlay.  Both the centerlines and the labels are on by default at the mapfile. 

Thanks 

bobb 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20110201/e130ff11/attachment.html


More information about the mapserver-dev mailing list