PATRIK27 / osmdroid

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

MapQuest alternative tiles sources seems to not use filesystem cache #149

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set MapView tiles source to MapQuestOSM
2. Use you app to load and save tiles on the sdcard
3. Turn the device into flight mode (no network connectivity)
4. Close and reopen your app : previous saved tiles are not displayed
These steps put in an obvious place the issue, but in common usage the 
filesystem cache is never used to load MapQuestOSM tiles.

What is the expected output? What do you see instead?
Tiles available on the sdcard should be displayed and not downloaded.

What version of the product are you using? On what operating system?
osmdroid-android jar 3.0.1

Please provide any additional information below.
The problem seems to be located in MapTileProviderBasic, line 51 : 

final MapTileFilesystemProvider fileSystemProvider = new 
MapTileFilesystemProvider(
                pRegisterReceiver);

We should do :

final MapTileFilesystemProvider fileSystemProvider = new 
MapTileFilesystemProvider(
                pRegisterReceiver, pTileSource);

Original issue reported on code.google.com by huchet.j...@gmail.com on 28 Jan 2011 at 12:12

GoogleCodeExporter commented 8 years ago
This is correct. The filesystem provider should be provided the tile source 
upon initialization.

Original comment by kurtzm...@gmail.com on 30 Jan 2011 at 12:00

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r760.

Original comment by kurtzm...@gmail.com on 30 Jan 2011 at 12:01