如何在Android中实现离线映射。我用Mapsforge库尝试了它。 它不提供威斯康星州状态的二进制映射文件。那么如何创建自己的地图二进制文件?

提前感谢。

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top