我试图在Google Maps V3中获得以下行为:
要获得此功能,请使用以下设置:
map = new google.maps.Map(document.getElementById('map_canvas'), {
center : new google.maps.LatLng(41, 14),
zoom : 13,
mapTypeId : google.maps.MapTypeId.TERRAIN,
mapTypeControl: true,
mapTypeControlOptions: {
style: google.maps.MapTypeControlStyle.DROPDOWN_MENU
},
draggable: false,
scrollwheel: true,
streetViewControl: true,
fullscreenControl: true,
scaleControl: true,
rotateControl: true,
overviewMapControl: true,
overviewMapControlOptions: {opened: true},
gestureHandling: 'greedy'
});
但是不起作用,而如果我设置了draggable:true,那么也会启用滚轮功能。换句话说,它似乎有滚轮:true我们还必须设置draggable:true否则设置将被忽略。任何线索?