💚 This is the latest document.
Zooming in the camera with animation.
map.animateCameraZoomIn(callback);
name | type | description |
---|---|---|
callback | Function | (optional) callback |
<div id="map_canvas">
<button>Click here</button>
</div>
var div = document.getElementById("map_canvas");
var map = plugin.google.maps.Map.getMap(div);
var button = div.getElementsByTagName('button')[0];
button.addEventListener('click', function() {
map.animateCameraZoomIn();
});