我想补充popover /覆盖/热点上的谷歌地图在Android上的街景 [英] I want to add popover/overlay/hotspot on the streetview of google map in android

查看:250
本文介绍了我想补充popover /覆盖/热点上的谷歌地图在Android上的街景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要的是一个图标标记的街景某些对象。而作为街景旋转热点图标也应随之移动,正如我已经表明,该标签应随地图移动的波纹管的图像。这些图片只是自我编辑。但我想这在街景通过指定角度,捏和经纬度值。

What I want is to tag some objects in streetview by an icon. And as the streetview rotates the hotspot icon should also move with it, As i have shown in bellow images that the tag should be moving along with the map. The images are just self edited. but i want this in the streetview by specifying the angle, pinch and latLong values.

那么,有没有办法为这个....?。

So is there any way for this....?.

波纹管是一个简单的codeI已经通过写意图拨打电话的stretview应用程序。

bellow is the simple code i have written to call the stretview app of phone through intent.

Intent streetView = new Intent(android.content.Intent.ACTION_VIEW,Uri.parse("google.streetview:cbll=33.748832,-84.38751300000001"+"&cbp=1,90,,0,1.0&mz=8"));
    startActivity(streetView);

其他的方式来执行相同的本也惠康...

Other ways for performing same this are also wellcome...

在此先感谢

推荐答案

虽然我的问题提出了批评,我发现另一种方式来做到这一点。

Even though my question was criticized I found an alternate way to do this.

我做的是,使用谷歌地图创建的谷歌地图街景的JavaScript API V3是既桌面浏览器和手机浏览器兼容。然后补充说,在入资产的Andr​​oid应用程序包的文件夹,显示它在Android的WebView。然后接受来自加速度计的x坐标的值,并将其上的每个更新传递给web视图通过webviewInterface和设定用映射的标题用它。

What i have done is, created Google map street-view using Google map JavaScript api v3 which is compatible with both desktop browser and mobile browsers. And then added that in assest folder of android application package and displayed it on android webview. Then accepting the value of x coordinate from accelerometer and passing it to the webview by webviewInterface on each update and setting the heading of map with it.

这篇关于我想补充popover /覆盖/热点上的谷歌地图在Android上的街景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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