[Mapserver-users] Can't set the status of a layer to be on.
Vincent Schut
schut at sarvision.com
Wed Jun 11 00:56:22 PDT 2003
Thats right.
For mapserver CGI:
STATUS DEFAULT means a layer is always drawn, no matter if you request it in
your url or not. STATUS ON means you have to explicitly mention the layer in
your url for the layer to be drawn, as Eric pointed out. STATUS OFF means you
cannot show your layer by mentioning it in the url.
Cheers,
Vincent.
On Wednesday 11 June 2003 02:29, Eric Bridger wrote:
> I don't use cgi mapserver much, but I believe you need to have a query
> string telling mapserver to turn the layers ON, e.g.
> ?layers=counties+States+interstate+river or
> ?layer=counties&layer=States&layer=interstate&layer=river
>
> You need to construct your form so that layers or layer appears in the
> form's query string.
>
> Eric Bridger
>
> At 03:50 PM 06/10/2003 -0500, pond bear wrote:
> >When I set the status of a layer to be default, it shows. But when I set
> > the status of the layer to be ON, it disappears. Does anybody know the
> > reason? Here is my mapfile:
> >
> >
> >NAME UMAC
> >SIZE 658 300
> >#EXTENT -104.349976 45.824193 -96.408106 49.111218
> >EXTENT -1398289 -441075 779057 576298
> >#EXTENT -312640 104632 265792 452180
> >IMAGECOLOR 255 255 255
> >SHAPEPATH "../shape/"
> >
> >PROJECTION
> > "proj=laea"
> > "ellps=WGS84"
> > "lat_0=45"
> > "lon_0=-100"
> > "x_0=0"
> > "y_0=0"
> >END
> >
> >WEB
> > TEMPLATE "lowerframe.html"
> > IMAGEPATH "/usr/local/apache2/htdocs/tmp/"
> > IMAGEURL "/tmp/"
> >END
> >
> >
> >LAYER # counties
> > NAME "counties"
> > DATA counties
> > #MAXSCALE 8200000
> > STATUS default
> > TYPE POLYGON
> > CLASS
> > OUTLINECOLOR 111 111 111
> > END
> >END
> >
> >
> >LAYER # States
> > NAME "States"
> > DATA states
> > STATUS default
> > TYPE POLYGON
> > CLASS
> > OUTLINECOLOR 0 0 0
> > END
> >END
> >
> >LAYER # interstate
> > NAME "interstate"
> > DATA interstate
> > STATUS default
> > TYPE LINE
> > CLASS
> > OUTLINECOLOR 0 128 0
> > END
> >END
> >
> >LAYER # river
> > NAME "river"
> > DATA rivers
> > STATUS default
> > TYPE LINE
> > CLASS
> > OUTLINECOLOR 0 0 128
> > END
> >END
> >
> >LAYER # cities
> > NAME "cities"
> > DATA cities
> > STATUS on
> > TYPE point
> > CLASS
> > OUTLINECOLOR 255 0 0
> > END
> >END
> >
> >END
> >
> >_________________________________________________________________
> >Add photos to your messages with MSN 8. Get 2 months FREE*.
> >http://join.msn.com/?page=features/featuredemail
> >
> >_______________________________________________
> >Mapserver-users mailing list
> >Mapserver-users at lists.gis.umn.edu
> >http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
--
______________________________________
Vincent Schut
Sarvision B.V.
Wageningen, The Netherlands
www.sarvision.com
More information about the MapServer-users
mailing list