[Mapserver-users] Select layers to display

Olaf Knopp oknopp at kartago.de
Mon Mar 10 11:59:28 EST 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0027_01C2E72E.CB671EC0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,

i try to install some checkboxes on my map template to select layers to =
display, but it does not work.
After checking a checkbox, the layers disapear from the map and the box =
is unchecked.
=20
Here is an example html passage of may template:

...
<input type=3D"checkbox" name=3D"layer" value=3D"Gastronomie" =
[Gastronomie_check]>Gastronomie
...

And here an example passage of the mapfile:
...
LAYER
   NAME "Gastronomie"
   TYPE POINT
   DATA "Gastronomie"
   STATUS ON
   CLASSITEM "Art"
   LABELITEM "Bezeich"
   LABELMAXSCALE 2000
   CLASS=20
    NAME "Hotels"
    EXPRESSION "Hotel"
    SYMBOL "Hotel"
    LABEL
     ANTIALIAS TRUE
     TYPE TRUETYPE
     FONT "Arial"
     SIZE 10
     COLOR 0 0 0
     OUTLINECOLOR 255 255 255
     POSITION uc
   END
  END
END
...=20

What=B4s wrong? Can anybody help me?
Thanks

Olaf

------=_NextPart_000_0027_01C2E72E.CB671EC0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3513.900" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>i try to install some checkboxes on my =
map template=20
to select layers to display, but it does not work.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>After checking a checkbox, the layers =
disapear from=20
the map and the box is unchecked.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Here is an example html passage of may=20
template:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&lt;input type=3D"checkbox" =
name=3D"layer"=20
value=3D"Gastronomie" [Gastronomie_check]&gt;Gastronomie</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>...</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>And here&nbsp;an example passage of the =

mapfile:</FONT></DIV>
<DIV><FONT size=3D2>
<P><FONT face=3DArial>...</FONT><BR>LAYER<BR>&nbsp;&nbsp; NAME=20
"Gastronomie"<BR>&nbsp;&nbsp; TYPE POINT<BR>&nbsp;&nbsp; DATA=20
"Gastronomie"<BR>&nbsp;&nbsp; STATUS ON<BR>&nbsp;&nbsp; CLASSITEM=20
"Art"<BR>&nbsp;&nbsp; LABELITEM "Bezeich"<BR>&nbsp;&nbsp; LABELMAXSCALE=20
2000<BR>&nbsp;&nbsp; CLASS&nbsp;<BR>&nbsp;&nbsp;&nbsp; NAME=20
"Hotels"<BR>&nbsp;&nbsp;&nbsp; EXPRESSION "Hotel"<BR>&nbsp;&nbsp;&nbsp; =
SYMBOL=20
"Hotel"<BR>&nbsp;&nbsp;&nbsp; LABEL<BR>&nbsp;&nbsp;&nbsp;&nbsp; =
ANTIALIAS=20
TRUE<BR>&nbsp;&nbsp;&nbsp;&nbsp; TYPE =
TRUETYPE<BR>&nbsp;&nbsp;&nbsp;&nbsp; FONT=20
"Arial"<BR>&nbsp;&nbsp;&nbsp;&nbsp; SIZE 10<BR>&nbsp;&nbsp;&nbsp;&nbsp; =
COLOR 0=20
0 0<BR>&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 255 255=20
255<BR>&nbsp;&nbsp;&nbsp;&nbsp; POSITION uc<BR>&nbsp;&nbsp; =
END<BR>&nbsp;=20
END<BR>END<BR>... </FONT></P></DIV>
<DIV><FONT face=3DArial size=3D2>What=B4s wrong? Can anybody help =
me?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>Olaf</FONT></DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_0027_01C2E72E.CB671EC0--




More information about the mapserver-users mailing list