<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2462.0" name=GENERATOR></HEAD>
<BODY style="MARGIN-TOP: 2px; FONT: 8pt Tahoma; MARGIN-LEFT: 2px">
<DIV><FONT size=1>This sounds like a better alternative as a few dozen almost
duplicated layers would make the map file very large.</FONT></DIV>
<DIV><FONT size=1></FONT> </DIV>
<DIV><FONT size=1>Any small examples of the code neccessary to do this would be
greatly appreciated as I am somewhat of a newbie in terms of coding, esp. java!
Thanks for the input.</FONT></DIV>
<DIV><FONT size=1></FONT> </DIV>
<DIV><FONT size=1>Mark</FONT></DIV>
<DIV><FONT size=1></FONT> </DIV>
<DIV><FONT size=1>~~~~~~~~~</FONT></DIV>
<DIV><FONT size=1></FONT> </DIV>
<DIV>Another option would be to change the label item on-the-fly. You can<BR>use
the CGI variable map_airport_labelitem for that purpose. You only<BR>need one
layer then. You'll have to write a tiny bit of javascript code<BR>to make that
control sticky but that's about it.</DIV>
<DIV> </DIV>
<DIV>Steve</DIV>
<DIV> </DIV>
<DIV>Stephen Lime<BR>Internet Applications Analyst</DIV>
<DIV> </DIV>
<DIV>Minnesota DNR<BR>500 Lafayette Road<BR>St. Paul, MN
55155<BR>651-297-2937</DIV>
<DIV> </DIV>
<DIV>>>> Puneet Kishor <<A
href="mailto:pkishor@GeoAnalytics.com">pkishor@GeoAnalytics.com</A>> 08/03/01
12:58PM >>><BR>Hi Mark,</DIV>
<DIV> </DIV>
<DIV>The quickest way that come to my mind is...</DIV>
<DIV> </DIV>
<DIV>make a separate layer for each of the labels... that is, one airport
layer<BR>with airport name as labelitem, another airport layer with faa id as
label.<BR>Turn the status to off for all of them.</DIV>
<DIV> </DIV>
<DIV>then use the form to grab the labelitem and turn that specific layer on
by<BR>setting its status to on.</DIV>
<DIV> </DIV>
<DIV>hth.</DIV>
<DIV> </DIV>
<DIV>pk/</DIV>
<DIV> </DIV>
<DIV>--<BR>Puneet Kishor<BR><A
href="mailto:pkishor@geoanalytics.com">pkishor@geoanalytics.com</A> <BR><A
href="http://www.geoanalytics.com">www.geoanalytics.com</A> </DIV>
<DIV> </DIV>
<DIV>GeoAnalyics, Inc.<BR>1716 Fordem Ave<BR>Madison WI 53704</DIV>
<DIV> </DIV>
<DIV>-----Original Message-----<BR>From: Mark Abernathy
[mailto:WMABERN@gwm.sc.edu] <BR>Sent: Friday, August 03, 2001 11:12 AM<BR>To: <A
href="mailto:mapserver-users@lists.gis.umn.edu">mapserver-users@lists.gis.umn.edu</A>
<BR>Subject: [mapserver-users] Multiple LabelItems from dropdown?</DIV>
<DIV> </DIV>
<DIV><BR>Hi folks,<BR>I have an airport layer with different classes of airports
within it<BR>determined by a SYMBOL attribute in the shape file. I would like to
be able<BR>to choose the Attribute to display at run time by feeding the
labelitem i.e<BR>FAAID or Airport Name from a dropdown list box on my html
form. <BR>In other words, I want the user to be able to diplay the Airport
name if<BR>they want, or the FAA Id, etc... chosen from a dropdown. Can this be
done? </DIV>
<DIV> </DIV>
<DIV>I haven't seen a question on this or an example of this in the archives.
</DIV>
<DIV> </DIV>
<DIV>Does anyone have an example of doing this and what variable should I
be<BR>passing to the map file and what is the syntax of that, please? Also,
any<BR>suggestions on the coding of the html drop down? Thanks for any
assistance.<BR>Below is a snip of my map file.</DIV>
<DIV> </DIV>
<DIV><BR># Start of AIRPORT Layer<BR>LAYER<BR> NAME AIRPORT<BR> TYPE
Point<BR> DATA AIRPORT<BR> STATUS DEFAULT<BR> <BR>
LABELITEM FAAID<BR> CLASSITEM "SYMBOL"<BR>
<BR> CLASS <BR> EXPRESSION
/1/<BR> NAME "Public
Airport"<BR> SYMBOL 13
<BR> SIZE
11 # legend symbol
size<BR> COLOR 102 204 000 # legend symbol
color - green<BR> <BR>
LABEL<BR> COLOR 0 0
0<BR> OUTLINECOLOR 255 255
153<BR> POSITION
AUTO<BR> SIZE
small<BR> PARTIALS
TRUE<BR> BUFFER 2<BR>
END<BR> END # CLASS</DIV>
<DIV> </DIV>
<DIV> </DIV></BODY></HTML>