关于谷歌Android API-街景 [英] about android google api-streetview
本文介绍了关于谷歌Android API-街景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在android的AVD显示街景? 我写map.setStreetView(真正的);但只显示蓝色的轮廓。
How to display streetview in android AVD? I write map.setStreetView(true); but only display blue outline.
推荐答案
另外这里是一个网站,在使用一个例子(向下滚动到第7步): <一href="http://mobile.tutsplus.com/tutorials/android/android-sdk-quick-tip-launching-maps-in-app/">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 API-街景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文