Wait for the page to finish loading before trying to add any data
object to the map as IE won't be ready to draw vectors until the page is fully loaded. Closes #2692.
This commit is contained in:
parent
aac4776dd1
commit
dfec61084a
1 changed files with 2 additions and 1 deletions
|
@ -170,7 +170,8 @@ end
|
|||
url += "/full";
|
||||
<% end %>
|
||||
|
||||
addObjectToMap(url, <%= object_zoom %>);
|
||||
// IE requires Vector layers be initialised on page load, and not under deferred script conditions
|
||||
Event.observe(window, 'load', function() { addObjectToMap(url, <%= object_zoom %>) });
|
||||
<% end %>
|
||||
|
||||
map.events.register("moveend", map, updateLocation);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue