[mapserver-users] opacity

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Tue Nov 16 10:26:13 PST 2010


"I don't know if it is possible at the map level..." - It's not, opacity is a layer or style-level parameter. For opaque maps many of the client environments (e.g. OpenLayers) provide controls for such things. In that case I would think it's better to use the client support than produce RGBA output via MapServer...

Steve

From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Olivier Bedel
Sent: Tuesday, November 16, 2010 12:18 PM
To: Clément MONIER
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] opacity

Hi Clément,

To change layers opacity in cgi call, something like that should work :
http://yourServer/cgi-bin/mapserv?map=yourMapfile&map.layer[yourLayerName1]=OPACITY%20yourOpacityValue1&map.layer[yourLayerName2]=OPACITY%20yourOpacityValue2

I don't know if it is possible at the map level...

Regards,
Olivier.

Le 16/11/2010 18:54, Clément MONIER a écrit :
Hi,

Is it possible to set layer's opacity dynamically ? with runtime substitution ?
is there a way to set opacity for all layers of a mapfile ?

Thank you for your help

Clem





_______________________________________________

mapserver-users mailing list

mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>

http://lists.osgeo.org/mailman/listinfo/mapserver-users






--

Olivier BEDEL



ALKANTE SAS

Ingénieur R&D SIG

1, rue du Chêne Morand

35 510 Cesson-Sévigné

Bur: + 33 (0) 2 99 22 25 70

fax : + 33 (0) 2 99 32 12 76
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20101116/0e46407f/attachment.htm>


More information about the MapServer-users mailing list