I need to use map rendering library in my android project. I want to use code found in mapsforge website.
First, I must set the map I want to use. Method to do that is setMapFile(String newMapFile) from MapView class. I tried to place map file in assets and res/raw folder in Eclipse project and then give path to it, but it doesn’t work for me.
Could anyone tell me how to correctly deliver path with map to this map?
You’ll have to place the map files on the SD card and access them as described in GettingStartedMapView.
One of the mapsforge developers answers a similar question on
mapsforge-devGoogle Groups explaining why map files can not be placed inside the app (i.e. in theassetsorresfolder):