Since for vector layers strategies retrieve the data, the strategies should be responsible for firing loadstart and loadend on the layer.
The Fixed and the BBOX Strategy already do this. What version of OpenLayers are you using? Bart > On Tue, Dec 13, 2011 at 1:21 PM, Dominik Mikiewicz > <[email protected]>wrote: > >> You can easilly extend vector layer class to make it fire events as >> needed. >> **** >> >> ** >> > how to do this? > extenting vector layer class to fire events > > please tell me. I dont have much knowlege in it > >> ** >> >> *From:* [email protected] [mailto: >> [email protected]] *On Behalf Of *Mohammed Rashad >> *Sent:* Tuesday, December 13, 2011 6:23 AM >> *To:* [email protected] >> *Subject:* [OpenLayers-Users] loadstart and loadend event not >> triggering** >> ** >> >> ** ** >> >> All,**** >> >> openlayers loadstart and loadend event not triggering**** >> >> I register the event to OpenLayers.Layer.Vector**** >> >> ** ** >> >> What I am missing??**** >> >> ** ** >> >> Here is my code**** >> >> function loadStartListener(event)**** >> >> {**** >> >> alert(0); //not reaching here**** >> >> ** ** >> >> }**** >> >> ** ** >> >> ** ** >> >> vectors = new OpenLayers.Layer.Vector(layername_ );**** >> >> map.addLayer(vectors);**** >> >> vectors.events.register("loadstart", '', loadStartListener);**** >> >> ** ** >> >> -- **** >> >> Regards**** >> >> ** ** >> > > > > -- > Regards, > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
