Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I setup an OpenLayers regular Google map with a Views OpenLayers Data thingie. Works in FireFix, Chrome, Opera, Safari... except of course in IE9. In IE9 it shows a "blank" map (white) with the controls, even the "Google copyright" is shown.
I tried to debug with the built-in dev tools. I can't see a thing, no JS errors, nothing. Just "being IE9" I guess.
Does anyone have a solution...?
Comment | File | Size | Author |
---|---|---|---|
#19 | openlayers-blank-gif-1364304.patch | 349 bytes | davidtrainer |
#15 | blank.gif | 43 bytes | JonMcL |
#1 | openlayers-fix-ie-render-1364304-1.patch | 882 bytes | nod_ |
google-ie9-screwup.png | 5.21 KB | Anonymous (not verified) |
Comments
Comment #1
nod_related, other version #1362988: The map does not appear in IE but there is no Error during map rendering !?
can you tell me if this patch fixes you issue please.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedI was reading about it here,
http://stackoverflow.com/questions/4737223/openlayers-google-maps-layers...
...OpenLayers mistakenly adds a "blank.gif" covering the entire map in IE9:
This is the part:
Except that is generated with JS somewhere in OpenLayers.js ... So this is an official Openlayers bug
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedI tried your patch from #1, but it has no effect in removing the blank.gif.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedWait, it does work. Refreshed my browser cache, your patch seems to work.
Comment #5
nod_umm, try to hack around in the OpenLayers.js library file and replace : set animationEnabled: false, for google layer type. Seems to be an issue with v3
Comment #6
nod_\o/ horray, i'll just wait tomorrow for confirmation and i'll commit. sorry for the status change, took too long to respond.
Comment #7
zzolo CreditAttribution: zzolo commentedI just committed code to add the animationEnabled option in the interface.
Comment #8
nod_commited to 7.x-3.x
Comment #10
vasikei can confirm this issue and the commit won't fix the IE problem
it seems there's an issue within "OpenLayers.js", it calls "blank.gif" several times.
if i change it to ""img/blank.gif" it will work in IE.
it looks like it doesn't use the right path. is this Openlayers library issue?
Comment #11
JonMcL CreditAttribution: JonMcL commentedI'm not fully versed on the patch discussed above, but I did just hit this problem again after upgrading my OpenLayers module. I had previously fixed the IE issue by renaming blank.gif to _blank.gif.
Today I tried something different -- I created a new blank.gif file from scratch. It appears that IE has a problem with the themes/default_dark/img/blank.gif file that is packaged with the module. My new one seems to work fine.
Comment #12
vasikei can confirm #11 issue and solution. so i think the themes/default_dark/img/blank.gif file should be replaced with the right one.
thanks JonMcL
Comment #13
vasikeComment #14
zzolo CreditAttribution: zzolo commentedHey @JonMcL, can you attache your blank.gif file, please. thanks.
Comment #15
JonMcL CreditAttribution: JonMcL commentedFile attached.
I believe I made it in Adobe Fireworks.
Comment #16
zzolo CreditAttribution: zzolo commentedFixed. Thanks for the image, @JobMcL.
http://drupalcode.org/project/openlayers.git/commit/21e2956
If someone can confirm that it is working, that would be awesome.
Comment #17
crizThx, I can confirm that it fixes the issue, at least in ie7 and ie8...
Comment #19
davidtrainer CreditAttribution: davidtrainer commentedPatch for Drush Make.
Comment #20
twooten CreditAttribution: twooten commentedworking for me - thanks!
Comment #21
ordermind CreditAttribution: ordermind commentedFor me the only one of these fixes that worked was #10. I used a local version of OL and changed "blank.gif" to "img/blank.gif" in OpenLayers.js and that did the trick.
Comment #22
AdamGerthel CreditAttribution: AdamGerthel commentedodd problem. Replacing the blank.gif worked for me. I used the one from #15
Comment #23
alexpz CreditAttribution: alexpz commented#15 solution did fixed my problem by changing the blank.gif with the attach one.
Comment #24
PolComment #25
dianacastillo CreditAttribution: dianacastillo commentedI did this patch #1 and now instead of a totally white screen , i get: "Error during map rendering: TypeError: Unable to get value of the property 'transform': object is null or undefined"
Comment #26
dianacastillo CreditAttribution: dianacastillo commented#10, I dont see blank.gif anywhere in the openlayers/js/openlayers.js , but just in case i replaced blank.gif for the one in this issue, but makes not diference, I still get "Error during map rendering: TypeError: Unable to get value of the property 'transform': object is null or undefined"
I'm using 7.x-2.0-beta3
Comment #27
Rob C CreditAttribution: Rob C commentedLong story short: I updated to 1aafdad93249b562a0895a6751d46aedcd2ac1ba and then the error dianacastillo describes looks fixed. (also seen the blank page without an error, but can't remember what i did to fix that)
@dianacastillo did you try other maps? Like the OSM streetmap? Just to rule out if your issue is a Google-only issue.
(I'm starting to believe we could possibly be mixing up issues here)
Comment #28
dianacastillo CreditAttribution: dianacastillo commentedHi rob, what do you mean you updated to 1aafdad.. etc? what does that mean?
I downloaded the openlayer library, instead of the hosted openlayers library, replaced the blank gif, changed maps, ( I was using the mapquest OSM, using google map now ) and I still get this message on IE 9 and no map:
"Error during map rendering: TypeError: Unable to get value of the property 'transform': object is null or undefined"
Comment #29
dianacastillo CreditAttribution: dianacastillo commentedThe problem has to do with the layers, when I disable all of the layers the map shows up fine in IE. But as soon as I mark one of the layers as activated and enabled I get that error : "Error during map rendering: TypeError: Unable to get value of the property 'transform': object is null or undefined"
Comment #30
dianacastillo CreditAttribution: dianacastillo commentedThe problem with viewing it in IE is caused by a conflict with the Adaptive Image Styles module. If I disable that module the map works fine in IE 9
Comment #31
katannshaw CreditAttribution: katannshaw commented@Rob C: Thank you for your #27 comment from a year ago. I switched to another map type and cleared my cache, and voilà! Sometimes is just so simple.