💚 This is the latest document.
Sets the preference for whether all gestures should be enabled or disabled.
marker.setAllGesturesEnabled(flag);
name | type | description |
---|---|---|
flag | boolean | false : disabled, true : enabled |
<div class="map" id="map_canvas">
<span class="smallPanel"><button>current: map.allGesturesEnabled = true</button></span>
</div>
var div = document.getElementById("map_canvas");
var map = plugin.google.maps.Map.getMap(div, {
'gestures': {
'scroll': true,
'tilt': true,
'rotate': true,
'zoom': true
}
});
var isEnabled = true;
var button = div.getElementsByTagName('button')[0];
button.addEventListener('click', function() {
isEnabled = !isEnabled;
map.setAllGesturesEnabled(isEnabled);
button.innerHTML = "current: map.allGesturesEnabled = " + isEnabled;
});