[OpenLayers-Users] Refresh map after updating chart elements

Jürgen Dankoweit Juergen.Dankoweit at T-Online.de
Thu May 14 22:20:53 PDT 2015


Hello Jason,

Am 14.05.2015 21:01, schrieb Jason Hawkins:
>   need to refresh an openlayers map after updating the size of pie
> charts in a mapfile displayed on the map (on button click). I cannot
> refresh the whole page or I lose the data. It works when I change the
> zoom level. I have tried map.updateSize() (no effect), map.render()
> (TypeError "a" is not defined), layer.redraw().

The methode "redraw" does not work as expected. Myself ran into the same 
trap. For me calling <layer>.refresh({force: true}) did the trick.

>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>


Best regards

Jürgen


--------------------------------------------------------------------------
Homepage: www.dankoweit.de


More information about the Users mailing list