哪个谷歌地图选项用于隐藏谷歌地图中的小人物?
以下是我的地图选项
mapOptions.zoom = 18;
mapOptions.zoomControl = true;
mapOptions.center = new window.google.maps.LatLng(mapCoordinates.latitude, mapCoordinates.longitude);
mapOptions.disableDefaultUI = false;
mapOptions.draggable = true;
mapOptions.styles = "";
mapOptions.disableDoubleClickZoom = true;
mapOptions.mapTypeControl = false;

答案 0 :(得分:5)
小人被命名为Pegman
,控件是streetViewControl
var mapOptions = {
center: new google.maps.LatLng(initLat, initLng),
zoom: initZoom,
streetViewControl: false, //don't show the pegman
mapTypeId: google.maps.MapTypeId.SATELLITE,
mapTypeControl:false,
scaleControl: true,
tilt: 0,
styles: mlwStyles
};