<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">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.&nbsp; -Steve<br>
<br>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF141006"><font color="#000000" face="Tahoma" size="2"><b>From:</b> mapserver-users-bounces@lists.osgeo.org [mapserver-users-bounces@lists.osgeo.org] on behalf of Jean Pierre MALOBERTI [jp.maloberti@gmail.com]<br>
<b>Sent:</b> Friday, January 13, 2012 12:40 AM<br>
<b>To:</b> mapserver-users@lists.osgeo.org<br>
<b>Subject:</b> [mapserver-users] Changing the gap parameter of a style via a URL<br>
</font><br>
</div>
<div></div>
<div>Hi all,
<div><br>
</div>
<div>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 :</div>
<div><br>
</div>
<div><a href="http://my_server/fcgi-bin/mapserv?map=my_mapfile.map&amp;map.layer[couche_s].class[0].style[0]=ANGLE&#43;30&#43;COLOR&#43;200&#43;100&#43;50&#43;SYMBOL&#43;hachure&#43;SIZE&#43;5&amp;icon=couche_s,0&amp;mode=legendicon" target="_blank">http://my_server/fcgi-bin/mapserv?map=my_mapfile.map&amp;map.layer[couche_s].class[0].style[0]=ANGLE&#43;30&#43;COLOR&#43;200&#43;100&#43;50&#43;SYMBOL&#43;hachure&#43;SIZE&#43;5&amp;icon=couche_s,0&amp;mode=legendicon</a></div>
<div><br>
</div>
<div>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)&nbsp;</div>
<div><br>
</div>
<div>If the style is written in the mapfile, the legend icon renders using this URL :&nbsp;<a href="http://my_server/fcgi-bin/mapserv?map=my_mapfile.map&amp;&amp;icon=couche_s,0&amp;mode=legendicon" target="_blank">http://my_server/fcgi-bin/mapserv?map=my_mapfile.map&amp;&amp;icon=couche_s,0&amp;mode=legendicon</a></div>
<div><br>
</div>
<div>
<div>&nbsp; &nbsp; &nbsp; STYLE</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; ANGLE 30</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; COLOR 200 100 50</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; GAP 3</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; SIZE 5</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; SYMBOL &quot;hachure&quot;</div>
<div>&nbsp; &nbsp; &nbsp;END</div>
<div><br>
</div>
<div>Where is the problem ?</div>
<div><br>
</div>
<div>Thanks</div>
-- <br>
Jean Pierre MALOBERTI<br>
</div>
</div>
</div>
</div>
</body>
</html>