| Issue 2528: | ImageMapTypeOptions opacity broken in IE8 | |
| 14 people starred this issue and may be notified of changes. | Back to list |
This code fails in IE8, but works on FF, Opera, Safari, Chrome, IE7 and IE8 in IE7 mode
var opacity = 0.4;
var myImageType = function(url, opacity) {
var tileLayer = new google.maps.ImageMapType({
getTileUrl: function(point, zoom) {
return url;
},
tileSize: new google.maps.Size(256, 256),
opacity: parseFloat(opacity),
isPng: true
});
return tileLayer;
};
looking around, the only code I have seen working so far is to do styling depending on the engine:
if ( typeof(obj.style.filter) == 'string' ) {obj.style.filter = 'alpha(opacity:'+ (this.opacity) * 100 + ')'; }
if ( typeof(obj.style.KHTMLOpacity) == 'string' ) {obj.style.KHTMLOpacity = this.opacity; }
if ( typeof(obj.style.MozOpacity) == 'string' ) {obj.style.MozOpacity = this.opacity; }
if ( typeof(obj.style.opacity) == 'string' ) {obj.style.opacity = this.opacity; }
but it doesn't use ImageMapType, instead it relies on creating an Img element where opacity is applied.
any fix possible?
Jul 27, 2010
(No comment was entered for this change.)
Status:
Confirmed
Sep 29, 2010
Are there any confirmed fixes being planned for this?
Sep 29, 2010
I'm experiencing the same issue, even forcing IE into compatability mode wont work! Has anyone found a work around for this yet?
Sep 29, 2010
the workaround should do the trick, it does so because you tell IE to act like IE7. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> That's what we've been using for the last couple months, waiting for a fix.
Oct 11, 2010
(No comment was entered for this change.)
Status:
Fixed
Labels: Fixed-3.2
Nov 1, 2010
It seems not to be fixed in 3.2.9 with IE8 The "filter:opacity(0.75)" is attatched to the div and not to the image - tag. please have a look with IE8 at: http://www.immobilienscout24.de/expose/53483449?heatmaps=true&tab=MAP
Nov 19, 2010
The bug is still unfixed. I have used the meta tag above for now, but would appreciate further investigation please.
Dec 7, 2010
None of the versions has this fixed as of today (3.1, 3.2, 3.3) can you mark this as unfixed, as nobody has seen this working anywhere? Thanks |
|
| ► Sign in to add a comment |
Labels: Internal-2874837