[mapserver-dev] Dynamic change of Styling info on mapfile

jude mwenda judemwenda at gmail.com
Thu Jun 9 14:37:12 EDT 2011


Hi,
i have the following problem where i have a mapfile with the following.
specified for a layer
      STYLE
        COLORRANGE 0 0 0  255 255 0 # black to yellow
   DATARANGE 0.0 2000000.0
   RANGEITEM "POP2005"
      END
So the above loads a nice map. But i would like the colorrange,datarange and
rangeitem to be dynamic. Is there a way to change their values during
runtime?
I have looked at the documentation on variable substitution and tried what
there but the mayer fails to load. using
the url &map.layer[African].class[0].style[0]=COLORRANGE+255+255+0+0+0+0
returns an error. Is it possible to change the colorrange values?
Please help.


-- 
Regards,

Jude Mwenda
Skype id: jmwenda
Twitter: www.twitter.com/judemwenda
Web: www.africangeogeek.com

"Was ist mein Leben, wenn ich nicht mehr nützlich für andere."
Johann Wolfgang von Goethe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20110609/3f261c66/attachment.html


More information about the mapserver-dev mailing list