[OpenLayers-Users] Refresh map after updating chart elements

Jason Hawkins jfh at hbaspecto.com
Wed May 20 08:25:59 PDT 2015


Perfect! <layer>.refresh({force: true}) works for me.

On Fri, May 15, 2015 at 12:42 AM, Jürgen Dankoweit <
Juergen.Dankoweit at t-online.de> wrote:

> Am 15.05.2015 08:26, schrieb Tom Ruff:
>
>> I think Juergen  means layer.redraw(true).  That should work.
>>
>
> 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.
>
> Only <layer>.refresh({force: true}) did/does the trick.
>
> In OpenLayers3 there is the same problem.
>
>
>
>> -----Original Message----- From: Jürgen Dankoweit
>> Sent: Thursday, May 14, 2015 10:20 PM
>> To: openlayers-users at lists.osgeo.org
>> Subject: Re: [OpenLayers-Users] Refresh map after updating chart elements
>>
>> 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
>> _______________________________________________
>> Users mailing list
>> Users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>>
>
>
> --
> Mit freundlichen Grüßen
>
> Jürgen Dankoweit
>
> --------------------------------------------------------------------------
> Homepage: www.dankoweit.de
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20150520/b8038df6/attachment.html>


More information about the Users mailing list