For GeoExt we have a similar issue with Ext.onReady, we advise people who want to initialize vector layers to use body onLoad instead. It's because the VML Renderer needs document.namespaces.
Best regards, Bart -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS bart...@osgis.nl On Mar 16, 2011, at 12:17 PM, Martin Saturka wrote: > Hi, > we use OpenLayers at environments where we need to use JQuery based > "ready" event for the maps initialization, i.e. > > $(document).ready(function() { do_map_init(); } > > It fails for some situations, mostly and usually for MSIE. I have > found (for the current stable 2.10 version of OL) that it could be > checked via > > OpenLayers.Util.test_ready = function() { > var aux_layer = null; > try { > aux_layer = new OpenLayers.Layer.Vector("auxiliary"); > } catch (e) { > return false; > } > return true; > }; > > I have a timer for checking it, until it is ok. Is there any plan for > having a regular checker? Am afraid that the thing above could be > wrong for next releases of OL. > > M. > > -- > Martin Saturka > Software Engineer, Sourcefabric > www.sourcefabric.org > _______________________________________________ > Dev mailing list > d...@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-dev > _______________________________________________ Dev mailing list d...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-dev