[OpenLayers-Dev] Layer GML and load events

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Tue Aug 26 13:26:45 EDT 2008


Hi list,

http://trac.openlayers.org/browser/trunk/openlayers/lib/OpenLayers/Layer/GML.js

Any reason why the loadstart event is not trigger in the loadGML 
function itself?

Now it is triggered in moveTo, setURL but for instance not in 
setVisibility before the loadGML call.

Would it not be better to move the event to the loadGML function, and 
specifically inside the if block?

If I read the current code correctly, if the layer is already loaded, 
won't it fire a loadstart but not a loadend?

Best regards,
Bart

-- 
Bart van den Eijnden
OSGIS, Open Source GIS
bartvde at osgis.nl
http://www.osgis.nl




More information about the Dev mailing list