[mapserver-users] Multiple LabelItems from dropdown?

Mark Abernathy WMABERN at gwm.sc.edu
Fri Aug 3 12:12:17 EDT 2001


Hi folks,
I have an airport layer with different classes of airports within it determined by a SYMBOL attribute in the shape file. I would like to be able to choose the Attribute to display at run time by feeding the labelitem i.e FAAID or Airport Name from a dropdown list box on my html form.  
In other words, I want the user to be able to diplay the Airport name if they want, or the FAA Id, etc... chosen from a dropdown. Can this be done? 

I haven't seen a question on this or an example of this in the archives. 

Does anyone have an example of doing this and what variable should I be passing to the map file and what is the syntax of that, please? Also, any suggestions on the coding of the html drop down? Thanks for any assistance.  Below is a snip of my map file.


# Start of AIRPORT Layer
LAYER
  NAME AIRPORT
  TYPE Point
  DATA AIRPORT
  STATUS DEFAULT
  
  LABELITEM FAAID
  CLASSITEM "SYMBOL"
     
   CLASS  
      EXPRESSION /1/
      NAME "Public Airport"
      SYMBOL 13 
      SIZE 11           # legend symbol size
      COLOR 102 204 000  # legend symbol color - green
    
     LABEL
      COLOR 0 0 0
      OUTLINECOLOR 255 255 153
      POSITION AUTO
      SIZE small
      PARTIALS TRUE
      BUFFER 2
     END
   END # CLASS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20010803/22f42ad5/attachment.html


More information about the mapserver-users mailing list