[OpenLayers-Users] Layer.opacity is always null
Christopher Schmidt
crschmidt at metacarta.com
Tue Dec 16 20:03:44 EST 2008
On Tue, Dec 16, 2008 at 04:39:38PM -0800, Greg Ederer wrote:
> I might be able to get the opacity value by examining
> layer.div.childNodes[0]. But, I suspect that this is set in a
> browser-dependent way; so it might be a bit of a pain to ensure that I
> always get the correct value.
>
> Any ideas?
Can you provide code that reproduces your problem? A trivial test
against the layer-opacity.html example shows that in firebug, I can get
map.layers[1].opacity, call setOpacity(0.5), and call
map.layers[1].opacity again and get a new opacity.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list