diff --git a/js/openlayers.js b/js/openlayers.js index 8eefe8d..c8a7da2 100644 --- a/js/openlayers.js +++ b/js/openlayers.js @@ -84,7 +84,7 @@ Drupal.behaviors.openlayers = { } // Initialize openlayers map - var openlayers = new OpenLayers.Map(map.id, options); + var openlayers = new OpenLayers.Map(options); // Run the layer addition first Drupal.openlayers.addLayers(map, openlayers); @@ -96,7 +96,12 @@ Drupal.behaviors.openlayers = { Drupal.attachBehaviors(this); if ($.browser.msie) { - Drupal.openlayers.redrawVectors(); + $(window).load(function () { + openlayers.render(map.id); + }); + } + else { + openlayers.render(map.id); } } catch (e) {