Closed (duplicate)
Project:
Openlayers
Version:
7.x-2.0-beta1
Component:
OL API
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Dec 2011 at 22:31 UTC
Updated:
23 Mar 2012 at 19:13 UTC
I am getting the following js error as soon as the map tries to load
SCRIPT5007: Unable to get value of the property 'parentNode': object is null or undefined
OpenLayers.js?lw7nik, line 1557 character 178
The map graphics do not show, just a white blank box. The map controls and location node do show.
This only occured in ie and works fine in Firefox.
Comments
Comment #1
nod_can you try this patch please : https://drupal.org/node/1364304#comment-5338260
Comment #2
gc23 commentedDidn't work,
The js error is gone, however the map isn't rendered.
The code indeed enters:
$(window).load(function () {
openlayers.render(map.id);});
Comment #3
nod_Well that's a start, Are you using virtual earth layers ? we had problems with thoses. Could you try the default OSM layer ?
Comment #4
gc23 commentedI am using Google Maps.
So I enabled OSM as well and also removed all markers from the map, I am using views to display markers.
When I activate OSM the map shows fine, for Google Maps it doesn't. I could use OSM but when I enable my markers, IE starts to hang. It took about 1min to render the map with around 1000 markers and also any action taken in the map, zoom in/out etc is also extremely slow.
Comment #5
nod_Well 1000 markers is a lot and IE is not the fastest kid on the block either. Have you tried cluster behavior ? You might have some success reducing the number of results you display, 1000 sounds like an awful lot of points to show, is it still usable with that much data ?
If it's still slow with that you might have to consider ditching openlayers and rolling your own map based on gmap and it's cluster behavior. OL, and browsers in general, are still not ready to handle lots of data points the way it's done here.
If you use chrome to display your map is it still dead slow ?
Comment #6
nod_If that's a perf issue, it becomes a duplicate of #1370536: Display thousands of entries. I'll leave it open in case the problem is elsewhere.
Comment #7
gc23 commentedFirefox and Chrome work fine with 1000 markers. It is as fast as when using gmap module. I will try out first OL clustering, in case this works. But yea, if it doesn;t I'm afraid I'll go with the standard gmap module and clustering.
Comment #8
zzolo commentedPlease note that this limitation is with web mapping in general, and switching to GMap may get some more performance, but you will still run into these problems.
The better approach, IMO, is either use something like TileMill to put data into raster format. Or think of a user experience that doesnt show that much data to the user all at one time.
Comment #9
gc23 commentedIs there a way to load the OSM map for IE and for the rest of the browsers the GMap? I have tried to work some js on load but no luck so far. This could be a nice workaround.
Comment #10
d.sibaud commentedI have the same problem with only one marker sob!!, tried to apply the #1 patch without results, very big problem:
Comment #11
d.sibaud commentedFor me was really something stupid, there was in the "default_dark" theme a img/blank.gif white instead of transparent and the top layer was hiding the google map!!! However the patch solved the error message, thanks.
Solved for me, switched to support request.
Comment #12
zzolo commentedYeah, the blank.gif image thing should have been fixed here: #1364304: Blank Google Map in IE9, but works in FireFox, Chrome etc.
Let me know if this solves your issue. Closing for now.