0

I'm using offline maps downloaded from OpenStreetMaps on my Android application.

When I move the map some tiles do not appears.

I whould like to choose the area of n kilometers by m kilometers or something else.

Natanael
  • 2,290
  • 6
  • 23
  • 35
  • How are you downloading the tiles? How are you storeing the tiles? How are you displaying the tiles? – Ifor Nov 19 '12 at 13:19
  • To use maps offline:mMapView.setUseDataConnection(true); mMapView.setTileSource(TileSourceFactory.MAPNIK); mMapView.setUseDataConnection(false); – Natanael Nov 19 '12 at 18:07
  • The storage is made automatically by OSMDroid library. I don't know exactly how it works. The tiles are show in a MapView from OSMDroid library. – Natanael Nov 19 '12 at 18:11

1 Answers1

0

You are curently just getting the tiles osmdroid has in it's cache. It caches tiles automaticaly as it downloads the. There is no easy way of getting tiles into the cache without first trying to display them with online enabled.

If you realy want offline support you have to prepare a file with the tiles you need and get it into the sdcard/osmdroid/ direcrctory. The simplest method of creating the file is to use a tool like Mobile Atlas Creator I would recomend the GEMF format over .zip it just works far better procedure is the same just copy the file and it is found automaticaly.

Ifor
  • 2,825
  • 1
  • 22
  • 25