How can i implement offline map in android. I tried it with mapsforge library.
It does not provides binary map file for Wisconsin state. So How can create my own map binary file ?
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You will need two things:
a program that allows you to use the mapsforge library. Concerning this, you can stick with the program called AdvancedMapViewer which comes as an example with the library.
a mapfile. Bascially you have to create your own mapfile from OpenStreetMap data. This is done with a plugin for Osmosis. This plugin is described here:
https://github.com/mapsforge/mapsforge/blob/master/docs/Getting-Started-Map-Writer.md
In short it works like this:
run the osmosis task, thus run this on a shell (with osmosis in your PATH):
osmosis --read-pbf wisconsin-latest.osm.pbf --mapfile-writer file=wisconsin.mapthen put the created file wisconsin.map on your device and load it from AdvancedMapViewer.