关于android google api-streetview [英] about android google api-streetview

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

问题描述

如何在安卓 AVD 中显示街景?我写 map.setStreetView(true);但只显示蓝色轮廓.

How to display streetview in android AVD? I write map.setStreetView(true); but only display blue outline.

推荐答案

这里还有一个使用示例的站点(向下滚动到第 7 步):http://mobile.tutsplus.com/tutorials/android/android-sdk-quick-tip-launching-maps-in-app/

Also here is a site with an example in use (scroll down to step 7): http://mobile.tutsplus.com/tutorials/android/android-sdk-quick-tip-launching-maps-in-app/

您必须使用长点和纬度点构建字符串,然后启动新的 ACTION_VIEW 意图.

You have to build the string using your long and lat points, and then launch a new ACTION_VIEW intent.

例如:

Intent streetView = new Intent(android.content.Intent.ACTION_VIEW,Uri.parse("google.streetview:cbll="+ latitude+","+longitude+"&cbp=1,99.56,,1,-5.27&mz=21"));
startActivity(streetView);

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

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