Reputation: 206
I'm programming a Map application to my android.
Right now, got osmdroid working up, all good. Problem is that when I open the map, it shows the grid, but no tiles.
I'm using:
On create method, I have the following:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Specify the XML layout to use:
setContentView(R.layout.osm_map);
// Find the MapView controller in that layout:
m_mapView = (MapView) findViewById(R.id.mapview);
// Setup the mapView controller:
m_mapView.setBuiltInZoomControls(true);
m_mapView.setMultiTouchControls(true);
m_mapView.setClickable(true);
m_mapView.setUseDataConnection(false);
m_mapView.getController().setZoom(MAP_DEFAULT_ZOOM);
m_mapView.getController().setCenter(
new GeoPoint(MAP_DEFAULT_LATITUDE, MAP_DEFAULT_LONGITUDE));
m_mapView.setTileSource(TileSourceFactory.MAPNIK);
} // end onCreate()
The tiles have been created on MOBAC 1.9.16, and are stored in sd card in 2 ways:
Any tip for fixing it? Navcat gives no error at all.
Upvotes: 0
Views: 2019