使用 osmDroid 映射 api 的 android 映射 [英] android mapping using osmDroid mapping api
问题描述
我想使用具有离线和在线功能的 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?
这篇关于使用 osmDroid 映射 api 的 android 映射的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!