Pregunta

¿Cómo puedo implementar el mapa fuera de línea en Android?Lo probé con la biblioteca de MapsForge. No proporciona un archivo de mapa binario para el estado de Wisconsin.Entonces, ¿cómo puede crear mi propio archivo binario mapa?

gracias de antemano.

¿Fue útil?

Solución

You will need two things:

  1. 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.

  2. 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:

then put the created file wisconsin.map on your device and load it from AdvancedMapViewer.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top