[mapserver-users] Changing the gap parameter of a style via a URL
Lime, Steve D (DNR)
Steve.Lime at state.mn.us
Fri Jan 13 04:23:54 PST 2012
Definitely a bug. Parameters must be configured in the lexer to be mutable via URL and GAP isn't set up. If you'd file a ticket I can fix quickly. -Steve
________________________________
From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Jean Pierre MALOBERTI [jp.maloberti at gmail.com]
Sent: Friday, January 13, 2012 12:40 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Changing the gap parameter of a style via a URL
Hi all,
I'm working on an administration tool for our Flex/PHP/Mapserver application. The goal is to render the styles and change parameters dynamically on the clien application by using a URL like this :
http://my_server/fcgi-bin/mapserv?map=my_mapfile.map&map.layer[couche_s].class[0].style[0]=ANGLE+30+COLOR+200+100+50+SYMBOL+hachure+SIZE+5&icon=couche_s,0&mode=legendicon
It works for parameters like COLOR, OUTLINECOLOR, SYMBOL, WIDTH, SIZE but with parameter GAP it throws an error : loadStyle(): Unknown identifier. Parsing error near (GAP):(line 1)
If the style is written in the mapfile, the legend icon renders using this URL : http://my_server/fcgi-bin/mapserv?map=my_mapfile.map&&icon=couche_s,0&mode=legendicon
STYLE
ANGLE 30
COLOR 200 100 50
GAP 3
SIZE 5
SYMBOL "hachure"
END
Where is the problem ?
Thanks
--
Jean Pierre MALOBERTI
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120113/eec01221/attachment.htm>
More information about the MapServer-users
mailing list