使用 osmDroid 映射 api 的 android 映射 [英] android mapping using osmDroid mapping api

查看:24
本文介绍了使用 osmDroid 映射 api 的 android 映射的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用具有离线和在线功能的 osmDroid 映射 api 开发 android 映射应用程序,但我找不到很多关于它的教程,所以如果有人有任何使用 osmdroid 映射 api 离线或在线的教程的链接.我编写了一个小应用程序只是为了显示来自默认提供程序的地图,但是,应用程序运行但没有显示地图(仅显示)有什么问题?代码:

I want to develope android mapping app using osmDroid mapping api with offline and online capabilites, but I couldn't find many tutorials about it, so If any one have any link to tutorials that use osmdroid mapping api offline or online. I have write a small app just to display the map from the default provider but, the application run but no map is displayed (only squers) what is wrong?? the code:

MapView map = new MapView(this, 256);
    map.setClickable(true);
    map.setBuiltInZoomControls(true);
    setContentView(map);

控件显示!!!!!!

推荐答案

或者可能缺少清单文件中的 INTERNET(或其他)权限?

Or maybe missing the INTERNET (or another) permission in the manifest file?

HowToUseJar

这篇关于使用 osmDroid 映射 api 的 android 映射的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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