[OpenLayers-Users] IE and "return!!(document.namespace)

Andreas Hocevar ahocevar at opengeo.org
Fri Feb 5 17:12:12 EST 2010


luke82 wrote:
> I've got the exactly same problem. I'm loading 3 valid KML-Layers and a WMS
> for background-information. Works well in Firefox, Opera, Safari etc., but
> no in IE6, IE7 and IE8.
> Does anyone has a solution for that?
>   
See the explanations in http://trac.openlayers.org/ticket/2304

Basically, you have to make sure that you don't create the vector layer 
before document.onload. This is why all OpenLayers examples start 
building the map in an init function that is assigned to document.onload.

Regards,
Andreas.

-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.




More information about the Users mailing list