使用osmDroid绘图API的Andr​​oid映射 [英] android mapping using osmDroid mapping api

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

问题描述

我想用与离线和在线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?

HowToUseJar

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

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