Thanks everyone. I will directly use 2.11, which will require minor changes to my code, but I think the fix should be backported because lot of apps could be affected by this problem, and it's rather difficult to update many codbases...
giovanni 2011/8/10 Andreas Hocevar <[email protected]> > Hi, > > FWIW, this is fixed in OpenLayers-2.11 (rc2 currently available). > > Andreas. > > On Aug 10, 2011, at 15:34 , Peter Körner wrote: > > > Am 10.08.2011 15:23, schrieb G. Allegri: > >> Sorry fot having posted the wrong links, I forgot to edit them before > >> sending. > >> > >> The problem is quite difficult to resume, because it affects various > >> points of OL. In general, the Firebug console reports problems with > >> various symbols and classes being undefined (e.g. OpenLayers.LonLat is > >> not a constructor, OpenLayers.Format.GML.v3 is undefined, > >> OpenLayers.Format.Filter is undefined, and so on). Try the Base Layers, > >> or the Click Handler examples from > > Yes I can confirm that and I'd guess it comes from the method used to > delay-load the different files. It does a user-agent check here: > > > > var docWrite = (agent.match("MSIE") || agent.match("Safari")); > > > > if docWrite is true, it uses document.write("<script ... />") to load the > scripts. If it is false, it uses > document.getElementsByTagName("head")[0].appendChild(...) to load them. > > > > as far I know, appendChild will load the files in the order the server > responds, while document.write will wait for one file to load before the > next gets loaded -- but this is only from my own and limited tests. > > > > Loading the files in the wrong order produces the described problems. > > > > Peter > > _______________________________________________ > > Dev mailing list > > [email protected] > > http://lists.osgeo.org/mailman/listinfo/openlayers-dev > > > > -- > Andreas Hocevar > OpenGeo - http://opengeo.org/ > Expert service straight from the developers. > >
_______________________________________________ Dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-dev
