[OpenLayers-Users] IE problems with OL + dojo
William Kyngesburye
woklist at kyngchaos.com
Sat Mar 28 11:17:51 EDT 2009
On Mar 28, 2009, at 2:54 AM, Eric Lemoine wrote:
> Hi.
>
> The "missing tiles" syndrom is often due to setCenter executed too
> early, i.e. before the map div has its final dimensions.
>
I'm calling zoomToMaxExtent at the very end of the initialization
(dojo.addOnLoad for Dojo). Is this something that is more likely to
affect IE?
> 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.
>
The auto-distribution of javascript question was never answered
clearly by the FSF rep - he sidestepped my latest question of whether
an application with both server and client code can be considered
distributed.
I suppose geoext is an option, since my application wouldn't need to
be GPL. But, I want to stick with Dojo for now, I like it and have
spent a lot of time on it now. And geoext doesn't look like it's
ready for production use yet.
> 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
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
-----
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