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

OpenLayers trac-20090302 at openlayers.org
Tue Aug 9 15:09:11 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:  Review    |  

Comment(by erilem):

 Replying to [comment:14 ahocevar]:
 > Maybe an explanation about [attachment:opacity.patch] is in order: in
 IE8, the filter is not applied to positioned child elements (like in our
 case, where {{{style.position}}} is set to {{{absolute}}}). And in
 addition, the filter needs to be applied ''after'' an image is loaded. So
 we use a loadend listener and just set the filter again, to make sure that
 it gets applied. In css, setting a width and height in pixels for the
 layer div is also necessary, because otherwise the children won't render
 at all. The whole workaround is only necessary for IE8.

 Thanks Andreas for researching the issue, and providing an explanation for
 it. I'm in favor of reverting r12185, to avoid introducing some
 IE8-specific hackish code.

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

More information about the Trac mailing list