[mapserver-users] PHPMapscript setBinding and opacity

ludwig at kni-online.de ludwig at kni-online.de
Wed Nov 30 08:43:42 EST 2011


Hi List,
I use mapserver version 6.01 from ms4w. 
I tried the setBinding on the style-object with values from Postgis-Query:
[snip]
$current_style->setBinding(MS_STYLE_BINDING_COLOR,'mapserver_coloritem');
[/snip]
I figured by testing, that the contents for the 'mapserver_coloritem' in
form of hex-values "#ff0000" (red) ar recognised. But an additional opacity
defined in the mapfile or set by 
[snip]
$current_style->set('opacity',0.1); 
[/snip]
doesn't work any more.

Is this known behaviour or a bug?

Ludwig

P.S.:
A workaround is a hex-value with alpha-value, f. e. "#0000ff0f" (blue with
low opacity), this works! Should be mentioned somewhere in the
documentation...

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/PHPMapscript-setBinding-and-opacity-tp7046824p7046824.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list