[OpenLayers-Users] IE problems with OL + dojo

William Kyngesburye woklist at kyngchaos.com
Thu Mar 26 17:16:26 EDT 2009


I mostly have OL working with the Dojo js library.  The main key I  
found was to load OL *after* dojo, or neither would work right.

The map displays correctly, and the dojo layout stuff works, in Safari  
and Firefox, but IE6+ has problems.

With a tiled base layer, one or more of the tiles is not rendering in  
the initial view (max extents), and the bigger the window, the more  
missing.  If I zoom in, then back out to the max extents, it renders  
all tiles.

Also, when exiting the web page, there is a javascript error.  The  
best I could debug it, with companion.js, there is an invalid argument  
error in Map.js line 890 (multi-file OL), or a syntax error on line  
891, depending on whether the map page is embedded in another page or  
not. (OL 2.7).

The same OL map using mapfish/ext does not have these problems.

I wonder if Dojo is redefining something that OL needs, that only  
affects IE browsers?  Or Dojo is changing the DOM differently in IE,  
and in a way OL doesn't like?  My debugging capability is limited on  
the IE side.  And this whole adventure (first mapfish, then dojo) has  
been a crash course in javascript, so I'm still learning ;)

If anyone cares to look, the non-embedded version:

http://www.mappingspecialists.com/maps/windex-full-dev-dojo.php

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

[Trillian]  What are you supposed to do WITH a maniacally depressed  
robot?

[Marvin]  You think you have problems?  What are you supposed to do if  
you ARE a maniacally depressed robot?  No, don't try and answer, I'm  
50,000 times more intelligent than you and even I don't know the  
answer...

- HitchHiker's Guide to the Galaxy





More information about the Users mailing list