[OpenLayers-Users] IE problems with OL + dojo

Eric Lemoine eric.c2c at gmail.com
Sat Mar 28 03:54:21 EDT 2009


Hi.

The "missing tiles" syndrom is often due to setCenter executed too
early, i.e. before the map div has its final dimensions.

If Ext is still an option for you I'd recommend looking at GeoExt
(<http://www.geoext.org>), GeoExt includes a map panel making it easy
to have an OpenLayers map in an Ext panel and avoiding the types of
issues you're seeing.

Cheers,

Eric

2009/3/26, William Kyngesburye <woklist at kyngchaos.com>:
> 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
>
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>

-- 
Envoyé avec mon mobile



More information about the Users mailing list