Hey Eric, right, what I am doing now is calling display in the following way:
layer.display(layer.calculateInRange()); but it feels a bit weird to do it this way. With out of sync I mean indeed being displaced, so that's similar to what your github issue describes. Thanks for the pointer I'll check that out. Best regards, Bart -- Bart van den Eijnden OpenGeo - http://opengeo.org Expert service straight from the developers. On Apr 11, 2012, at 3:41 PM, Eric Lemoine wrote: > > > On Wednesday, April 11, 2012, Bart van den Eijnden wrote: > Hey Eric, > > thanks for your quick replies being at FOSS4GNA. > > I wasn't, and mainly because I was looking at Layer.js where redraw has no > argument: > > https://github.com/openlayers/openlayers/blob/master/lib/OpenLayers/Layer.js#L553 > > But I see HTTPRequest has the boolean argument: > > https://github.com/openlayers/openlayers/blob/master/lib/OpenLayers/Layer/HTTPRequest.js#L146 > > But I should not have to call force to get the layer to hide if it's out of > scale right? > > Right. I initially thought you needed to reload images. > > "force" places a random value in the query string. This is to "break" the > cache. > > Have you tried calling layer.display()? > > > Force is just to always fetch a new image from the server. > > However, calling redraw(true) does not make the layer disappear > unfortunately. > > When zooming the overlay is also out of sync with the basemap, not sure if > this is directly related to the redraw call though. > > Sorry I'm not sure I understand what you mean by "out of sync". > > You may be hit by <https://github.com/openlayers/openlayers/pull/393>. > > > -- > Eric Lemoine > > Camptocamp France SAS > Savoie Technolac, BP 352 > 73377 Le Bourget du Lac, Cedex > > Tel : 00 33 4 79 44 44 96 > Mail : [email protected] > http://www.camptocamp.com >
_______________________________________________ Dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-dev
