自定义 Google 街景嵌入
我正在使用街景作为我的页面之一的嵌入。 我真的很想删除街景控件,或者至少将它们的位置更改为右上角,而不是默认的左上角。
我的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据 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.
好的,据我所知...控件位于 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 :(