[OpenLayers-Trac]
Re: [OpenLayers] #3431: set opacity on layer divs,
not on tiles and markers
OpenLayers
trac-20090302 at openlayers.org
Tue Aug 9 13:38:48 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 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.
--
Ticket URL: <http://trac.openlayers.org/ticket/3431#comment:14>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list