自定义 Google 街景嵌入

发布于 2024-07-26 11:38:46 字数 556 浏览 3 评论 0原文

我正在使用街景作为我的页面之一的嵌入。 我真的很想删除街景控件,或者至少将它们的位置更改为右上角,而不是默认的左上角。

我的 javascript 代码正在控制嵌入,API 文档表明“streetview”只是法线地图 API 之上的另一层,但我找不到任何删除它们的方法。

有人可以帮忙吗?

    function initcf1() {
    var myPano = new GStreetviewPanorama(document.getElementById("container"));
    position= new GLatLng(51.479018, -0.215178);
    myPOV = {yaw:378.64659986187695, pitch:-7};
    myPano.setLocationAndPOV(position, myPOV);
    GEvent.addListener(myPano, "error", handleNoFlash);
}
google.setOnLoadCallback(initcf1);

谢谢!

I'm using streetview as an embed in one of my pages. I'd really like to remove the streetview controls though, or at least change their position to the top right, instead of the default top left.

My javascript code is controlling the embed, and the API documentation suggests that "streetview" is just another layer on top of the normal maps API, but I can't find any way of removing them.

Can anyone help?

    function initcf1() {
    var myPano = new GStreetviewPanorama(document.getElementById("container"));
    position= new GLatLng(51.479018, -0.215178);
    myPOV = {yaw:378.64659986187695, pitch:-7};
    myPano.setLocationAndPOV(position, myPOV);
    GEvent.addListener(myPano, "error", handleNoFlash);
}
google.setOnLoadCallback(initcf1);

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

夕色琉璃 2024-08-02 11:38:46

根据 Google Maps API 小组的说法,这是不可能。 是的,街景是 Maps API 之上的另一层,但控件本身绝对是 Flash 应用程序的一部分 - 而不仅仅是另一层。

According to the Google Maps API Group, this is not possible. Yes, streetview is another layer on top of the Maps API, but the controls themselves are definitely part of the flash application - not just another layer.

痴意少年 2024-08-02 11:38:46

好的,据我所知...控件位于 Flash 对象内,因此无法移动或修改。

在谷歌群组或网络上的其他地方几乎没有任何关于此的信息:(

OK, as far as I've been able to ascertain... the controls are within the flash object and so are impossible to move or modify.

There is next to no information about this anywhere within the google groups or elsewhere on the web :(

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文