问题与切换街景视图 [英] Issue with Toggled Street View Map

查看:217
本文介绍了问题与切换街景视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试自定义切换的街景视图地图我正在努力解决一些关于自定义地图控件和函数的问题。从 link 我可以切换地图,但对使用街景地图属性感到困惑!



您可以让我知道如何我可以做这个?敌人的例子,我想删除街道视图上的白色方向箭头或缩放的透明白色方框,只显示街道,我如何在地图选项外设置属性?



我尝试自定义

  var panorama = map.getStreetView(); 
panorama.setPosition(fenway);
panorama.linksControl(true);
panorama.ControlPosition = BOTTOM_CENTER;
panorama = panControl(false);
panorama.ZoomControlStyle.SMALL;

谢谢

解决方案 div>

它没有在当前文档中列出,但是对于streetViewPanorama有一个 setOptions - 方法,使用此方法来设置属性:

  panorama = map.getStreetView(); 

panorama.setOptions(
{位置:fenway,$ b $ linkControl:false,
addressControl:false,
panControl:false,
zoomControlOptions :{position:google.maps.ControlPosition.BOTTOM_CENTER,
style:google.maps.ZoomControlStyle.SMALL}
});

注意:白色箭头是 linksControl ,透明框AFAIK不能被删除。


Trying to customize a toggled Street view Map I am struggling with some issues on customizing map controls and functions.As you can see from this link I can toggle the maps but I am confused on using the Street View Maps properties!

Can you please let me know how I can do this? Foe example I would like to remove the White Direction arrows on the street view or that transparent white box for zooming and only display the street, how I can set properties outside of the map options?

I try to customize

var panorama = map.getStreetView();
panorama.setPosition(fenway);
panorama.linksControl(true);
panorama.ControlPosition = BOTTOM_CENTER;
panorama = panControl(false);
panorama.ZoomControlStyle.SMALL;

Thanks

解决方案

It's not listed in the current documentation, but there is a setOptions-method for a streetViewPanorama, use this method to set the properties:

  panorama = map.getStreetView();

  panorama.setOptions(
    { position:           fenway,
      linksControl:       false,
      addressControl:     false,
      panControl:         false,
      zoomControlOptions:{ position: google.maps.ControlPosition.BOTTOM_CENTER,
                           style:    google.maps.ZoomControlStyle.SMALL }
    });

Note: the white arrows are the linksControl, the transparent box AFAIK can't be removed.

这篇关于问题与切换街景视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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