p-lr / MapView

A Fast, memory efficient Android library to display tiled maps, with support for markers, paths, and rotation.
Apache License 2.0
184 stars 38 forks source link

Redraw map tiles #22

Closed lutretyakova closed 3 years ago

lutretyakova commented 3 years ago

Hi, is there a way to force refresh the map tiles. For example, when the user changes some point on the tile, I need to redraw it. Recreating the MapView doesn't work for me as there is a lot of logic there. Maybe there is a way to reload the file or canvas or something like that? Thank you

p-lr commented 3 years ago

Hi, I understand the use case. I'll work on that soon.

Le mer. 3 févr. 2021 à 07:48, lutretyakova notifications@github.com a écrit :

Hi, is there a way to force refresh the map tiles. For example, when the user changes some point on the tile, I need to redraw it. Recreating the MapView doesn't work for me as there is a lot of logic there. Maybe there is a way to reload the file or canvas or something like that? Thank you

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/peterLaurence/MapView/issues/22, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADXKCCRH677K4FBWTSOYPELS5DWTJANCNFSM4XAJEXEA .

lutretyakova commented 3 years ago

Thank you. It's great lib

p-lr commented 3 years ago

@lutretyakova The new 2.1.6 version has a redrawTiles() method on MapView that should work as you expect.