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

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

问题描述

我是 Open Street Map 的新手.我做了一些研究,发现我们可以将地图下载并存储到一个文件夹中.但我没有找到任何提供离线开放街道地图的教程或示例.有人可以提供一步一步的教程,请提供一个实现离线开放街道地图的指南.我正在关注这个例子 http://android-coding.blogspot.com/2012/06/example-of-implementing-openstreetmap.html 但现在我想在没有连接时让它可用.

I am a newbie to Open Street Map. 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 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.

推荐答案

就像你提到的教程一样,你可以使用 osmdroid 库:https://code.google.com/p/osmdroid/

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

这里很好地解释了 osmdroid 如何与离线地图配合使用:https://stackoverflow.com/a/8286276/891479

There's a good explanation of how osmdroid works with offline maps here: https://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 格式的离线地图,请使用 Mobile Atlas Creator:http://mobac.sourceforge.net/

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

您可以选择地图的来源和输出格式.生成后,将 zip 格式的地图集放入/osmdroid/map"目录.

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天全站免登陆