PATRIK27 / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

Option to reload currently visible tiles #111

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This is an enhancement patch.

What steps will reproduce the problem?
1. View the map using OSMDroid
2. The viewed tiles are now in your cache on the sdcard
3. Update the map with JOSM or potlatch
4. You still see the old, obsolete tiles

What is the expected output? What do you see instead?
There should be an option to reload the currently visible tiles, as suggested 
in issue 40 and issue 44.

What version of the product are you using? On what operating system?
Current svn (r454), android 2.1

Please provide any additional information below.
This patch provides a new method OpenStreetMapView.removeCachedVisibleTiles , 
and a menu option in the OpenStreetMapViewer sample to call that method.

The method calls cache and filesystem methods to remove the tiles in a given 
rectangle at several zoom levels.

Please review and let me know what you think.

Many thanks,
-Jeremy Monin

Original issue reported on code.google.com by jdmo...@nand.net on 4 Nov 2010 at 7:48

Attachments:

GoogleCodeExporter commented 8 years ago
Issue 44 has been merged into this issue.

Original comment by neilboyd on 5 Nov 2010 at 6:32

GoogleCodeExporter commented 8 years ago

Original comment by neilboyd on 5 Nov 2010 at 6:32

GoogleCodeExporter commented 8 years ago
Hi,

this one would be very helpful to solve one of the issues at OSMTracker project 
(see https://code.google.com/p/osmtracker-android/issues/detail?id=80 for 
details)

best regards
Matthias

Original comment by matthias...@gmail.com on 17 Dec 2010 at 2:59

GoogleCodeExporter commented 8 years ago
This can be achieved with:

mMapView.getTileProvider().clearTileCache();

Original comment by kurtzm...@gmail.com on 2 May 2013 at 12:55