On the initial display of the map in IE 8 the background of the marker is not transparent. If I zoom in the icon is displayed correctly with transparent background. The icon is a .png file. This works in Firefox. I also tried the compatibility mode of IE 8 and it doesn't work. Pleas see the attached screen shots.

CommentFileSizeAuthor
zoom_in.jpg71.73 KBvlad.k
initial.jpg61.35 KBvlad.k
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zzolo’s picture

Hi @marsyas, thanks for the screenshots.

Can you possible look for any JS errors? I am not that familair with IE8 but here is a complete article: http://msdn.microsoft.com/en-us/library/dd565628(VS.85).aspx I think you should be able to hit F12 to get to the debugger.

Also, ensuring that your HTML is valid is also important.

vlad.k’s picture

There is no JS-error. I have only Drupal 6.16 with the theme pixture reloaded and the Openlayers related modules (CCK, Views, CTools). No further customization has been done, so the HTML should be ok.

The screenshot is from a page displaying the page display of a view with style "Openlayers map".

zzolo’s picture

Well, its hard to debug with out some more information. I don't actually have IE8 readily available at the moment. Does your site have a public URL?

vlad.k’s picture

Not yet, but I put it online if you'll take a minute to look into this. I'll provide the url tomorrow.

tmcw’s picture

This is very likely an upstream bug. I'd try to write a quick test page with IE8 rendering semitransparent PNGs on document.ready and see if there's a bug in OpenLayers.js, and post that on OpenLayers.org.

vlad.k’s picture

I've found the solution. For some unknown reason I had the fillOpacity in the style configuration set to '0.9'. If I set it to '1' the picture is displayed correctly in IE, if it is set to something less then 1 the error occurs.

As far as I'm concerned this is issue is fixed. If you still want to look into this, I can provide the url, since I figured this out by setting up the test page.

tmcw’s picture

Status: Active » Fixed

Fixed in http://drupal.org/cvs?commit=377670 - added IE documentation to the module, including this case.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

BWPanda’s picture

Status: Closed (fixed) » Active

I just came across this issue. Got it to work by following the documentation as above, but thought it might be handy for others if you added a note about not leaving the FillOpacity field blank. I assumed that by leaving it blank it would set to 1 by default, apparently not...

So, wondering if you could either add a note about this (that blank != 1.0) or even set that field to 1.0 by default...?
Thanks!

tmcw’s picture

Status: Active » Closed (fixed)

Good idea - changed, documented more, and committed. http://drupal.org/cvs?commit=384366