Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.
Comment | File | Size | Author |
---|---|---|---|
zoom_in.jpg | 71.73 KB | vlad.k | |
initial.jpg | 61.35 KB | vlad.k |
Comments
Comment #1
zzolo CreditAttribution: zzolo commentedHi @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.
Comment #2
vlad.k CreditAttribution: vlad.k commentedThere 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".
Comment #3
zzolo CreditAttribution: zzolo commentedWell, 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?
Comment #4
vlad.k CreditAttribution: vlad.k commentedNot yet, but I put it online if you'll take a minute to look into this. I'll provide the url tomorrow.
Comment #5
tmcw CreditAttribution: tmcw commentedThis 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.
Comment #6
vlad.k CreditAttribution: vlad.k commentedI'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.
Comment #7
tmcw CreditAttribution: tmcw commentedFixed in http://drupal.org/cvs?commit=377670 - added IE documentation to the module, including this case.
Comment #9
BWPanda CreditAttribution: BWPanda commentedI 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!
Comment #10
tmcw CreditAttribution: tmcw commentedGood idea - changed, documented more, and committed. http://drupal.org/cvs?commit=384366