<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hey Eric,<div><br></div><div>right, what I am doing now is calling display in the following way:</div><div><br></div><div>layer.display(layer.calculateInRange());</div><div><br></div><div>but it feels a bit weird to do it this way.</div><div><br></div><div>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.</div><div><br></div><div>Best regards,</div><div>Bart</div><div><br><div apple-content-edited="true">
<div>-- <br>Bart van den Eijnden<br>OpenGeo - <a href="http://opengeo.org/">http://opengeo.org</a><br>Expert service straight from the developers.</div><div><br></div><br class="Apple-interchange-newline">
</div>
<br><div><div>On Apr 11, 2012, at 3:41 PM, Eric Lemoine wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br>On Wednesday, April 11, 2012, Bart van den Eijnden wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hey Eric,<div><br>
</div><div>thanks for your quick replies being at FOSS4GNA.</div><div><br></div><div>I wasn't, and mainly because I was looking at Layer.js where redraw has no argument:</div><div><br></div><div><a href="https://github.com/openlayers/openlayers/blob/master/lib/OpenLayers/Layer.js#L553" target="_blank">https://github.com/openlayers/openlayers/blob/master/lib/OpenLayers/Layer.js#L553</a></div>
<div><br></div><div>But I see HTTPRequest has the boolean argument:</div><div><br></div><div><a href="https://github.com/openlayers/openlayers/blob/master/lib/OpenLayers/Layer/HTTPRequest.js#L146" target="_blank">https://github.com/openlayers/openlayers/blob/master/lib/OpenLayers/Layer/HTTPRequest.js#L146</a></div>
<div><br></div><div>But I should not have to call force to get the layer to hide if it's out of scale right?</div><div></div></div></blockquote><div><br></div><div>Right. I initially thought you needed to reload images.</div>
<div><br></div><div>"force" places a random value in the query string. This is to "break" the cache.</div><div><br></div><div>Have you tried calling layer.display()?<span></span></div><div><br></div><div>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Force is just to always fetch a new image from the server.</div><div><br>
</div><div>However, calling redraw(true) does not make the layer disappear unfortunately. </div><div><br></div><div>When zooming the overlay is also out of sync with the basemap, not sure if this is directly related to the redraw call though.</div>
</div></blockquote><div><br></div><div>Sorry I'm not sure I understand what you mean by "out of sync".</div><div><br></div><div dir="ltr">You may be hit by <<a href="https://github.com/openlayers/openlayers/pull/393">https://github.com/openlayers/openlayers/pull/393</a>>.</div>
<br><br>-- <br>Eric Lemoine<br><br>Camptocamp France SAS<br>Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex<br><br>Tel : 00 33 4 79 44 44 96<br>Mail : <a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br>
<a href="http://www.camptocamp.com/">http://www.camptocamp.com</a><br><br>
</blockquote></div><br></div></body></html>