问题与切换街景视图 [英] Issue with Toggled Street View Map
问题描述
您可以让我知道如何我可以做这个?敌人的例子,我想删除街道视图上的白色方向箭头或缩放的透明白色方框,只显示街道,我如何在地图选项外设置属性?
我尝试自定义
var panorama = map.getStreetView();
panorama.setPosition(fenway);
panorama.linksControl(true);
panorama.ControlPosition = BOTTOM_CENTER;
panorama = panControl(false);
panorama.ZoomControlStyle.SMALL;
谢谢
它没有在当前文档中列出,但是对于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屋!