var panorama = new google.maps.StreetViewPanorama(
document.getElementById('map'),
{
enableCloseButton:true,
disableDoubleClickZoom:true,
visible:false
}
);
var center=new google.maps.LatLng(34.322700, 168.552500); //some
var zoom = mapOption.zoom || 2;
var option = {
zoom: zoom,
overviewMapControl: true,
scaleControl: true,
overviewMapControlOptions: { opened: false },
streetView:panorama,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
this.mapObject = new google.maps.Map(divId, option);
把GOOGLE地图嵌进自己程序里面,街景显示默认没有退出按扭。