<div dir="ltr">Perfect! <span style="font-size:12.8000001907349px"><layer>.refresh({force: true}) works for me.</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 15, 2015 at 12:42 AM, Jürgen Dankoweit <span dir="ltr"><<a href="mailto:Juergen.Dankoweit@t-online.de" target="_blank">Juergen.Dankoweit@t-online.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Am 15.05.2015 08:26, schrieb Tom Ruff:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I think Juergen means layer.redraw(true). That should work.<br>
</blockquote>
<br></span>
I have tried this too after spending hours of searching and testing for a solution - this was about two years ago. But this solution works only when the zoomlevel changes or the map is panned.<br>
<br>
Only <layer>.refresh({force: true}) did/does the trick.<br>
<br>
In OpenLayers3 there is the same problem.<div class="HOEnZb"><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
-----Original Message----- From: Jürgen Dankoweit<br>
Sent: Thursday, May 14, 2015 10:20 PM<br>
To: <a href="mailto:openlayers-users@lists.osgeo.org" target="_blank">openlayers-users@lists.osgeo.org</a><br>
Subject: Re: [OpenLayers-Users] Refresh map after updating chart elements<br>
<br>
Hello Jason,<br>
<br>
Am 14.05.2015 21:01, schrieb Jason Hawkins:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
need to refresh an openlayers map after updating the size of pie<br>
charts in a mapfile displayed on the map (on button click). I cannot<br>
refresh the whole page or I lose the data. It works when I change the<br>
zoom level. I have tried map.updateSize() (no effect), map.render()<br>
(TypeError "a" is not defined), layer.redraw().<br>
</blockquote>
<br>
The methode "redraw" does not work as expected. Myself ran into the same<br>
trap. For me calling <layer>.refresh({force: true}) did the trick.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org" target="_blank">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>
<br>
</blockquote>
<br>
<br>
Best regards<br>
<br>
Jürgen<br>
<br>
<br>
--------------------------------------------------------------------------<br>
Homepage: <a href="http://www.dankoweit.de" target="_blank">www.dankoweit.de</a><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org" target="_blank">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>
<br>
<br></div></div><span class="HOEnZb"><font color="#888888">
-- <br>
Mit freundlichen Grüßen<br>
<br>
Jürgen Dankoweit</font></span><div class="HOEnZb"><div class="h5"><br>
--------------------------------------------------------------------------<br>
Homepage: <a href="http://www.dankoweit.de" target="_blank">www.dankoweit.de</a><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org" target="_blank">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>
</div></div></blockquote></div><br></div>