[mapserver-users] mapfile correction
Daniel Morissette
morissette at dmsolutions.ca
Mon Sep 2 10:45:05 PDT 2002
Stefan Stern wrote:
>
> you are right! STATUS DEFAULT is the key.
>
> But why doesn't "STATUS ON" work as well?????
>
The exact reasons behind this I'm not exactly sure... perhaps there is
an historical reason? Having a distinction between DEFAULT, ON and OFF
is definitely useful in MapScript, but the behavior with the mapserv CGI
is a bit different:
STATUS DEFAULT layers are ALWAYS visible
STATUS ON is the same as OFF for the mapserv CGI... the layer is not
displayed unless explicitly requested using the LAYER=<layername> CGI
parameter.
(In MapScript, layers with STATUS ON will show up on the map)
--
------------------------------------------------------------
Daniel Morissette morissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
Don't put for tomorrow what you can do today, because if
you enjoy it today you can do it again tomorrow.
More information about the MapServer-users
mailing list