[mapserver-users] Changing map colors dynamically doesn't work
Jeff McKenna
jeffmckenna at gmail.com
Sun Mar 2 07:59:38 PST 2008
See the "URL Configuration Changes" section of:
http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT
-jeff
On Sun, Mar 2, 2008 at 9:12 AM, Michael Wessel <michael_wessel at gmx.de>
wrote:
> Dear MapServer list,
>
> according to
>
> http://mapserver.gis.umn.edu/docs/reference/cgi/controls
> "Changing map file parameters via a form or a URL"
>
> it should be possible to change the fill color
> of my map polygons to blue via the GET parameter
>
> map_lakes_class_color=0+0+255, e.g. in
>
>
> http://localhost/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/test4.map&map_lakes_class_color=0+0+255
>
> However, there is no change; the polygons stay red,
> as defined in the reference map file:
>
> MAP
> NAME 'map'
> STATUS ON
> IMAGETYPE PNG
> EXTENT -3037632.000000 -708658.398506 1846021.625000
> 4934649.999999
> SIZE 1024 768
> SHAPEPATH "/srv/www/mapserver/"
>
> WEB
> TEMPLATE "/home/mi.wessel/test/global.html"
> IMAGEPATH "/srv/www/htdocs/temp/"
> IMAGEURL "../temp/"
> END
>
> LAYER
> NAME 'lakes'
> STATUS DEFAULT
> TYPE POLYGON
> DATA lakes
>
> CLASS
> COLOR 100 0 0
> END
> END
>
> END
>
> I have also tried
>
> map_layer_0_class_color=200+0+0
>
> but then I get
>
> getSymbol(): Symbol definition error. Parsing error near (0):(line 1)he
> error
>
> What's wrong here? Adding a name to the class doesn't work either.
>
> I am using MapServer 5.0.2 (2008-01-28) on SuSE Linux 10.2.
>
> Best regards and thanks in advance,
>
> Michael
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080302/2b54d9de/attachment.htm>
More information about the MapServer-users
mailing list