<div dir="ltr">I think you have a new refresh strategy in 2.13, maybe it worth the look.</div><div class="gmail_extra"><br clear="all"><div>  -<span style="font-size:13px;line-height:19px;font-family:sans-serif">φ</span>ol d.-</div>

<br><br><div class="gmail_quote">On Mon, Jun 17, 2013 at 3:17 PM, StevenDenHartog <span dir="ltr"><<a href="mailto:steven.den.hartog@gmail.com" target="_blank">steven.den.hartog@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
adidas wrote<br>
> Hello! How to refresh layer vector?<br>
> Trying:<br>
> _function refreshAllLayers() {__<br>
> __    lineLayer.refresh( { force: true } );__<br>
> __    lineLayer_halo.refresh( { force: true } );__<br>
> __}_<br>
> ...<br>
> _<br>
> <button onclick="javascript: refreshAllLayers()"><br>
> Refresh<br>
> </button><br>
> _<br>
<br>
Hey there!<br>
Are you still having problems with this? The way the refresh function works<br>
is that it refreshes the data in the vector layer, but it does not actually<br>
cause a redraw of the layer. Please try the following:<br>
<br>
_function refreshAllLayers() {__<br>
__    lineLayer.refresh( { force: true } );__<br>
__    lineLayer_halo.refresh( { force: true } );__<br>
__    lineLayer.redraw();__<br>
__    lineLayer_halo.redraw();__<br>
__}_<br>
I hope this solved the problem!<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/How-to-refresh-layer-vector-tp5059906p5060588.html" target="_blank">http://osgeo-org.1560.x6.nabble.com/How-to-refresh-layer-vector-tp5059906p5060588.html</a><br>

Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</blockquote></div><br></div>