[OpenLayers-Dev] Text Layer and loadstart

Christopher Schmidt crschmidt at metacarta.com
Wed Dec 19 09:54:21 EST 2007


On Wed, Dec 19, 2007 at 09:51:25AM +0100, Bart van den Eijnden (OSGIS) wrote:
> Hi list,
> 
> with the current code it seems impossible to listen to a loadstart event on
> the Text Layer, since it already fires this event in the constructor.
> 
> Or am I missing something?

Nope. That's a bug. The load should not actually be started in
initialize: instead, it should be started in moveTo, if it's not yet
loaded. Layer.GML does this, Layer.GeoRSS and Layer.Text do not. A patch
for this would be great. Please open a ticket -- if you plan to work on
it, or work with someone else on it, pleaes put it in 2.6 and I'll
review when it's completed. 

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Dev mailing list