使用osmDroid绘图API的Android映射 [英] android mapping using osmDroid mapping api
问题描述
我想用与离线和在线capabilites osmDroid地图API来Android的下发展地图应用,但我无法找到很多教程有关,所以如果任何一个有任何链接到使用osmdroid地图API脱机或联机教程。
我有写一个小的应用程序只显示来自默认的提供者,但是,应用程序运行地图,地图没有显示(仅squers)什么是错的?在code:
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);
该控件显示!!!!!!
the controls are displayed!!!!!!
推荐答案
或许缺少INTERNET(或其他)在manifest文件权限?
Or maybe missing the INTERNET (or another) permission in the manifest file?
这篇关于使用osmDroid绘图API的Android映射的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!