[Mapserver-users] Select layers to display

Olaf Knopp oknopp at kartago.de
Mon Mar 10 08:59:28 PST 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> </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> </DIV>
<DIV><FONT face=3DArial size=3D2>Here is an example html passage of may=20
template:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><input type=3D"checkbox" =
name=3D"layer"=20
value=3D"Gastronomie" [Gastronomie_check]>Gastronomie</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>...</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>And here an example passage of the =

mapfile:</FONT></DIV>
<DIV><FONT size=3D2>
<P><FONT face=3DArial>...</FONT><BR>LAYER<BR>   NAME=20
"Gastronomie"<BR>   TYPE POINT<BR>   DATA=20
"Gastronomie"<BR>   STATUS ON<BR>   CLASSITEM=20
"Art"<BR>   LABELITEM "Bezeich"<BR>   LABELMAXSCALE=20
2000<BR>   CLASS <BR>    NAME=20
"Hotels"<BR>    EXPRESSION "Hotel"<BR>    =
SYMBOL=20
"Hotel"<BR>    LABEL<BR>     =
ANTIALIAS=20
TRUE<BR>     TYPE =
TRUETYPE<BR>     FONT=20
"Arial"<BR>     SIZE 10<BR>     =
COLOR 0=20
0 0<BR>     OUTLINECOLOR 255 255=20
255<BR>     POSITION uc<BR>   =
END<BR> =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> </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