Hi Dieter,

I also just used MS4W's PHP (PHP version 8.3.9) to call the setOpacity() function, to update the layer's opacity, such as:

  $oPolyLayer->setOpacity(40);

(see sample script at https://ms4w.com/trac/wiki/SWIGMapScriptOpacity )

-jeff




On 2024-08-07 11:38 a.m., Jeff McKenna via MapServer-users wrote:
Hi Dieter,

It could be possible that your MapServer installation was compiled with Pixman library support enabled in MapServer, which unfortunately causes a known bug where opacity does not work (see https://github.com/MapServer/MapServer/issues/5343 ).  I believe we should completely remove Pixman support from MapServer in a future release, as so many users hit this issue each year.

In other words, make sure that you set -DWITH_PIXMAN=0 when compiling MapServer from source.

PS. I actually used the small mapfile included in that ticket, for testing now with today's MapServer 8.3-dev on MS4W 5, on Windows, and successfully generated a proper map image (with opacity) with map2img.

thanks,

-jeff




--
Jeff McKenna
GatewayGeo: Developers of MS4W, & offering MapServer Consulting/Dev
co-founder of FOSS4G
http://gatewaygeo.com/

_______________________________________________
MapServer-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to