On 27/12/11 13:13, Dave Potts wrote: Problem discovered, my BBox stratgy was shared between two different layers, with the result that its internal state got corrupted. > On 26/12/11 20:00, Dave Potts wrote: > After a lot off digging around in the source code, it seem my refresh > attempt generates a moveend event. > > Which is then ignore by my BBOx stratgy, because the BBoxstratgy is not > active, therefore it has not installed a callback handler > > Setting the BBoxstratgy to active results in an error 'this.layer' is > null :-( > > So different question > > How do I ensure that the BBox stratgy is always in an active state? > >> HI List >> >> A slight problem with the WFS layer functions >> >> I am trying to add a new WFS layer to my map when I hit a gwt button, I >> am using openlayers via the gwt plugin in. >> >> I add a single wfs layer, when my button selected I make another request >> to load a wfs layer. >> >> I get the callbacks to say that layer has been loaded, but nothing is >> displayed on the screen. If I zoom in, a update event occurs, and the >> missing layer is drawn. >> >> Q. When I load a 2nd WFS layer shown it be drawn then the endloading >> callback is fired ? >> Q. What is the offical way of refreshing a screen after a layer has been >> loaded? >> >> So far I have attempt to refresh the screen by >> >> 1. Calling the redraw call on the new layer. >> 2. Zooming to the maxevents of the new layer. >> 3. Using a refresh stratgy >> 4. Zoom to the current maginfcation. >> None of this attempts worked. >> >> The only proven way of doing it seems to be zoom in one increment. >> >> Dave >> _______________________________________________ >> 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
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
