setting STYLE with CGI parameters

Brock Anderson banders at REFRACTIONS.NET
Fri Mar 31 14:57:29 PST 2006


Hi All,

I am trying to use CGI parameters to dynamically set the WIDTH and 
OUTLINECOLOR within a STYLE tag.  I've tried various formats for the CGI 
parameters, including something like:

    &map_mylayer_class_style_1_width=3

... but the parameters are being ignored.  Is it possible to use CGI 
parameters to set values within a STYLE element?  How?

Brock

I'm using Mapserver 4.6.2.  A piece of my map file:

LAYER
  NAME "mylayer"
  CONNECTIONTYPE postgis
  CONNECTION "..."
  DATA "..."

  CLASS
    EXPRESSION ([pop] > 5000)
    NAME "above 5000"
    STYLE
      COLOR 0 197 255
    END #end style
    STYLE
      OUTLINECOLOR 0 197 255
      WIDTH 5
    END #end style
  END #end class

  TYPE polygon
  STATUS DEFAULT
  PROJECTION
    "init=epsg:4269"
  END #projection
END #LAYER



More information about the MapServer-users mailing list