[OpenLayers-Trac] [OpenLayers] #3455: initial opacity setting sticks

OpenLayers trac-20090302 at openlayers.org
Mon Aug 8 10:39:05 EDT 2011


#3455: initial opacity setting sticks
----------------------+-----------------------------------------------------
 Reporter:  ahocevar  |       Owner:              
     Type:  feature   |      Status:  new         
 Priority:  minor     |   Milestone:  2.12 Release
Component:  general   |     Version:  2.11 RC2    
 Keywords:            |       State:              
----------------------+-----------------------------------------------------
 Caused by http://trac.osgeo.org/openlayers/ticket/3431#comment:7, the
 following fails:

  1. Open http://openlayers.org/dev/examples/lite.html;
  2. On the development console, do the following:
 {{{
 var layer2 = layer.clone();
 layer2.opacity = 0.5;
 map.addLayer(layer2);
 map.removeLayer(layer);
 layer2.setOpacity(1);
 }}}
 The opacity will still be 0.5, because it was set on every tile of layer2.

 This will be fixed with #3419.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3455>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list