Originally from kaakuu (#609092: Maps not working in IE)
-----------------------------------------------------------

@zzolo, Thanks for the query. I am at my wit's end as to what is happening (curse IE)

So far I have been using 6.x-1.0-beta3, and with the Internet Explorer 7 version I was having I had no problem. Now I have the IE 7 latest version downloaded from MS and problems started (explaining why some friends also could not see in IE 7) - that 'undefined' error message.

Now I upgraded to 6.x-1.0-beta4. The error message is gone, geo-location entered per node is okay but the Views Tracker that shows all or multiple nodes as 'round orange points' is NOT seen in IE. Refresh, clean cache, disk clean - still not seen! But manually change zoom (just minutely slide the +/- slider slightly) they can be seen again. Do a page refresh - revisit page, they are gone. Gone means invisible, but apparently they are there as map shows up (map setting has been done not to show empty map). PLease help !

So, to sum up, using latest Openlayers beta, latest Drupal 6.15 and latest stable Views, IE no longer shows error message but also no longer shows multiple node locations compositely on a map as those 'round orange points'.

Comments

zzolo’s picture

Are you uisng FF wtih Firebug, are there any JS errors. I have seen this before, but it usually caused by some other bad JS on the page.

netrom’s picture

Same issue I guess:

The problem applies for IE 6,7 and 8 as well.

I followed the instructions as described in #22 (http://drupal.org/node/609092). And the maps are actually now showing in IE.

BUT when adding polygons, points etc. they don't show in IE just like zzolo mentions (in FF they do show). It seems though that they (the points) are registered as they appear in the WKT field but they do not show on the map.

Context: I use the 2.8 hosted version on D6.14.

Any one who knows how to solve this?

markabur’s picture

chiming in with the same issue. i've tried beta4 and the current -dev, no difference. the base map comes up fine in IE (i'm looking at IE8 at the moment), and the points do appear if i scroll or zoom. map is 100% fine in safari and firefox. i've checked the page with firebug and don't have any errors.

right now i'm looking for *any* way, no matter how hackish, to force the map or vector layer to redraw in IE. i know the object ID, but it doesn't respond to the openlayers functions redraw() and refresh().

>Drupal.settings.openlayers.maps['openlayers-views-map-auto-id-where_today'].layers.openlayers_views_layer_where_today
>> Object
>Drupal.settings.openlayers.maps['openlayers-views-map-auto-id-where_today'].layers.openlayers_views_layer_where_today.type
>> Vector
>Drupal.settings.openlayers.maps['openlayers-views-map-auto-id-where_today'].layers.openlayers_views_layer_where_today.refresh() 
>> TypeError: Result of expression [...] is not a function.

in desperation i've also tried using jquery to click a map control but haven't gotten that to work either.

muhleder’s picture

I'm getting the same issues as above.

Using a fullscreen map, and with the fix from #22 (http://drupal.org/node/609092) I get the map to display, but points don't appear until you manually move the map.

However, if I remove the <?php print $styles; ?> element from the page template then the points appear.

muhleder’s picture

Well I narrowed it down to having another html img tag or css background image on the page for me.

Had to resort to using $("myelement").html('my images') to place the images in after the map had loaded.

tmcw’s picture

muhleder: note that IE has a 31 stylesheet limit. If you're approaching that limit, keep it in mind, and aggregating CSS files might be a fix.

Anyway, 2.x uses redrawVectors (here's the code) after pageload if the browser detected is IE, since I've encountered this problem before.

muhleder’s picture

It wasn't to do with the stylesheet limit in IE, I removed all stylesheets and placed my styles in the head to debug. Whenever I specified a background image for a div on the page, the points failed (until you moved the map). Also the same failure if I used an image instead of a div with a background.

The (now working, fingers crossed) map is here if anyone wants to take a look at how I got my one to work.

http://ecodesignchallenge.co.uk/content/dott09/map/fullscreen

Good to hear it's fixed in 2.

Thanks,

Mark

phayes’s picture

Category: feature » bug

Marking this as a bug. I'll see if I can implement tmcw's redrawVectors for 1.0 .

markabur’s picture

for me it has gone away in ie7 and ie8, but not ie6 (so, it's not really an issue for me anymore).

what changed was that previously i was doing some other openlayers stuff on a different page (not using the drupal module), and when i got rid of some code creating a new vector layer, my openlayers-module view (on a totally different page) started working better. i was happy to simply have it working again, so i haven't tried to figure out why that helped.

Anonymous’s picture

I'm using 1.0-rc1 and am experiencing this issue (maps not displaying properly/at all in IE). I tried the fix mentioned above in comment #22 of the other post but that didn't have any effect...
Any assistance appreciated!

zzolo’s picture

Status: Active » Closed (duplicate)

Put in redraw fix.

MAking this duplicate and moving here: #609092: Maps not working in IE