[OpenLayers-Users] opacity and wms.notile layer...
Christopher Schmidt
crschmidt at metacarta.com
Fri Mar 9 22:28:58 EST 2007
On Fri, Mar 09, 2007 at 02:44:40PM -0600, John Cole wrote:
> I've created a wms.notile layer and I'm trying to set it's opacity to 50%
> but it doesn't work for me.
>
> var revite_wms = new OpenLayers.Layer.WMS.Untiled(
> "Revite Areas",
>
> "http://kong.uai.int/cgi-bin/mapserv.exe?map=/mapserver/gdt/revite.map&",
> {layers: 'revite', transparent:'true',
> format:'image/png'},
> {'ratio':ratio},{opacity:
> 0.5},{visible:false});
>
> If I use a tiled wms layer, opacity seems to work fine.
>
> Any suggestions? (I'm using the current version on FF2).
You want to pass all of your options in a single object.
{ 'ratio': ratio, 'opacity': 0.5, 'visibility': false }
(Note 'visibility', not 'visible'.)
Can you point to the example that lead you to believe you needed to do
something different?
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list