[OpenLayers-Users] Layer opacity {getter/setter}?

Eric Lemoine eric.c2c at gmail.com
Sun Aug 31 15:36:12 EDT 2008


Hi. The Layer class has a setOpacity method. And even though the
opacity property isn't an API property using it as a getter doesn't
sound unreasonable to me. Eric

2008/8/29, Erik Uzureau <euzuro at gmail.com>:
> layer.opacity is a value that is stored on the layer. it is not an API
> property, meaning it is subject to change.... but speaking as a
> developer of the project, I think we can safely assume that it is not
> going to change.
>
> Perhaps we should consider promoting it to APIProperty? Thoughts?
>
> On Fri, Aug 29, 2008 at 9:17 AM, Semantica <jvanulde at nrcan.gc.ca> wrote:
>>
>> Is there some way that I can access the opacity of a layer once it's been
>> set?  I would like to store it in layer state so it is persisted on
>> layerSwitcher.redraw().
>>
>> Thank you in advance!
>> --
>> View this message in context:
>> http://n2.nabble.com/Layer-opacity-%7Bgetter-setter%7D--tp792302p792302.html
>> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



More information about the Users mailing list