[OpenLayers-Trac] [OpenLayers] #3441: Default opacity of layer
OpenLayers
trac-20090302 at openlayers.org
Fri Jul 29 03:06:25 EDT 2011
#3441: Default opacity of layer
-------------------------+--------------------------------------------------
Reporter: mosesonline | Owner: euzuro
Type: bug | Status: new
Priority: minor | Milestone: 2.12 Release
Component: Layer | Version: SVN
Keywords: layer | State: Review
-------------------------+--------------------------------------------------
Currently the opacity of a layer is '''null''' by default but it is
visible. If there is a control or an element which wants to control the
opacity of layers it has to deal with this strange "number" '''null'''
like :[[BR]]
if (layer.opacity == null) layer.opacity = 1;[[BR]]
It think it would be clearer if the opacity would be 1 form start.
--
Ticket URL: <http://trac.openlayers.org/ticket/3441>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list