<!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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT size=1>Mark</FONT></DIV>
<DIV><FONT size=1></FONT>&nbsp;</DIV>
<DIV><FONT size=1>~~~~~~~~~</FONT></DIV>
<DIV><FONT size=1></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV>Steve</DIV>
<DIV>&nbsp;</DIV>
<DIV>Stephen Lime<BR>Internet Applications Analyst</DIV>
<DIV>&nbsp;</DIV>
<DIV>Minnesota DNR<BR>500 Lafayette Road<BR>St. Paul, MN 
55155<BR>651-297-2937</DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt;&gt;&gt; Puneet Kishor &lt;<A 
href="mailto:pkishor@GeoAnalytics.com">pkishor@GeoAnalytics.com</A>&gt; 08/03/01 
12:58PM &gt;&gt;&gt;<BR>Hi Mark,</DIV>
<DIV>&nbsp;</DIV>
<DIV>The quickest way that come to my mind is...</DIV>
<DIV>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV>hth.</DIV>
<DIV>&nbsp;</DIV>
<DIV>pk/</DIV>
<DIV>&nbsp;</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>&nbsp;</DIV>
<DIV>GeoAnalyics, Inc.<BR>1716 Fordem Ave<BR>Madison WI 53704</DIV>
<DIV>&nbsp;</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>&nbsp;</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.&nbsp; <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>&nbsp;</DIV>
<DIV>I haven't seen a question on this or an example of this in the archives. 
</DIV>
<DIV>&nbsp;</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>&nbsp;</DIV>
<DIV><BR># Start of AIRPORT Layer<BR>LAYER<BR>&nbsp; NAME AIRPORT<BR>&nbsp; TYPE 
Point<BR>&nbsp; DATA AIRPORT<BR>&nbsp; STATUS DEFAULT<BR>&nbsp; <BR>&nbsp; 
LABELITEM FAAID<BR>&nbsp; CLASSITEM "SYMBOL"<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>&nbsp;&nbsp; CLASS&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXPRESSION 
/1/<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME "Public 
Airport"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL 13 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 
11&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # legend symbol 
size<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 102 204 000&nbsp; # legend symbol 
color - green<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp; 
LABEL<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0 
0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 255 255 
153<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POSITION 
AUTO<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 
small<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PARTIALS 
TRUE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BUFFER 2<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
END<BR>&nbsp;&nbsp; END # CLASS</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>