[OpenLayers-Trac] Re: [OpenLayers] #3431: set opacity on layer divs, not on tiles and markers

OpenLayers trac-20090302 at openlayers.org
Wed Aug 10 04:13:16 EDT 2011


#3431: set opacity on layer divs, not on tiles and markers
-----------------------+----------------------------------------------------
  Reporter:  ahocevar  |       Owner:  euzuro      
      Type:  feature   |      Status:  reopened    
  Priority:  minor     |   Milestone:  2.11 Release
 Component:  Layer     |     Version:  SVN         
Resolution:            |    Keywords:              
     State:  Pullup    |  
-----------------------+----------------------------------------------------

Comment(by ahocevar):

 @erilem: sorry, my mistake. You're right, there is no setOpacity in
 Tile.js, not even before #3419. There is only this code here in
 Tile.Image::initImgDiv:
 {{{
 if(this.layer.opacity != null) {

     OpenLayers.Util.modifyDOMElement(this.imgDiv, null, null, null,
                                      null, null, null,
                                      this.layer.opacity);
 }
 }}}

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3431#comment:25>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list