[mapserver-users] transparency with php mapscript

Sven Schroeter schroeter at netgis.de
Thu May 16 01:29:51 PDT 2019


Hello,

I test current php mapscript versions under Windows and try to give a 
layer transparency.

With mapserver versions < 7 this was possible:

$layer_poly->opacity = 68;

With the version MS4W 3.3.1 with Mapserver > 7 and PHP Mapscript it 
works like this:

$layer_poly->updateFromString('LAYER COMPOSITE OPACITY 68 END END');

In the new version MS4W 4.0.0 with the SWIG API I tried the following 
variants:

$layer_poly->opacity = 68;
$layer_poly->setOpacity(68);
$layer_poly->updateFromString('LAYER COMPOSITE OPACITY 68 END END');

In all variants no error message, but also no transparency.

Any ideas?

Thanks Sven







More information about the MapServer-users mailing list