开放街道地图离线工作的android [英] Open Street Map working offline android

查看:179
本文介绍了开放街道地图离线工作的android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新手打开地图街。我做了一些研究和发现,我们可以下载和地图保存到一个文件夹中。但我没有发现,提供离线开放街道地图的任何教程或样品。有人可以给我提供一步步的教程,指导,以实现离线开放街道地图吧。我下面这个例子<一个href="http://android-coding.blogspot.com/2012/06/example-of-implementing-openstreetmap.html">http://android-coding.blogspot.com/2012/06/example-of-implementing-openstreetmap.html但现在我想使它可在没有连接。

I am a newbie to Open Map Street. I made some research and found that we can download and store the map into a folder. But i didn't find any tutorial or sample that provides offline Open Street Map. Can someone provide me with a step by step tutorial, a guide to implement offline open street map please. I am following this example http://android-coding.blogspot.com/2012/06/example-of-implementing-openstreetmap.html but now i want to make it available when there is no connection.

推荐答案

就像你mentionned你可以使用osmdroid库教程: 的https://$c$c.google.com/p/osmdroid/

Like in the tutorial you mentionned you can use osmdroid library: https://code.google.com/p/osmdroid/

有如何osmdroid离线地图的作品在这里一个很好的解释: http://stackoverflow.com/a/8286276/891479

There's a good explanation of how osmdroid works with offline maps here: http://stackoverflow.com/a/8286276/891479

使用MapTileProviderBasic在你的应用程序。 这里的一些例子: http://www.androidadb.com/class/ma/MapTileProviderBasic.html

Use MapTileProviderBasic in your app. Some examples here: http://www.androidadb.com/class/ma/MapTileProviderBasic.html

要生成osmdroid格式使用移动阿特拉斯造物主离线地图: http://mobac.sourceforge.net/

To generate your offline maps in osmdroid format use Mobile Atlas Creator: http://mobac.sourceforge.net/

您可以选择地图的来源和输出格式。生成后,把你的地图,zip格式的地图册到/ osmdroid /图的目录。

You can choose the source of the maps and the output format. Once generated, put your maps atlas in zip format into your "/osmdroid/map" directory.

希望这将有助于!

这篇关于开放街道地图离线工作的android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆