[mapserver-users] mapfile correction
Daniel Morissette
morissette@dmsolutions.ca
Mon, 02 Sep 2002 13:45:05 -0400
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@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.