[mapserver-users] Checkboxes
Beth Baily
bbaily at CEMML.ColoState.EDU
Wed Dec 12 13:33:15 PST 2001
Steve,
The problem was that in my checkbox lines, the variables were lower case
([roads_check]) while the layer names in the map file were upper case
(Roads). Once I changed the names to match in case ([Roads_check]), the
problem was solved.
Thanks for your suggestion.
Beth
Stephen Woodbridge wrote:
>
> Beth,
>
> Try this:
>
> http://hostname/cgi-bin/mapserv.exe?map=E:\MapServer\Fort_Jackson\jackson_test2.map&layer=Roads&layer=Ranges&layer=TAs
>
> which assumes you have in your map file:
>
> LAYER
> NAME Roads
> ...
> END
>
> LAYER
> NAME Ranges
> ...
> END
>
> etc
>
> Here is a url to my work in progress (ie: under construction):
> http://swoodbridge.com/web2/ms_test
> you can turn layers on/off and see what happens on the url.
>
> -Steve
>
> Beth Baily wrote:
> >
> > MapServer Users,
> >
> > I'm trying to follow the demo example 4. How do you get the checkboxes
> > to stay checked when the layers are visible? I'm loading my page with
> > the layers like this:
> >
> > http://hostname/cgi-bin/mapserv.exe?map=E:\MapServer\Fort_Jackson\jackson_test2.map&layers=Roads+Ranges+TAs
> >
> > but the layers are not checked as they are in the example. What am I
> > doing wrong?
> >
> > Beth Baily
> > --
> > -------------------------------------
> > Beth Baily
> > Center for Environmental Management of Military Lands
> > Colorado State University
> > Fort Collins, CO 80523
> > Ph#:970/491-3814
> > FAX#:970/491-2713
> > E-mail: bbaily at cemml.colostate.edu
> > -------------------------------------
More information about the MapServer-users
mailing list