Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 788 Bytes

File metadata and controls

44 lines (34 loc) · 788 Bytes

💚 This is the latest document.

map.moveCameraZoomOut()

Zooming out the camera without animation.

map.moveCameraZoomIn(callback);

Parameters

name type description
callback Function (optional) callback

Demo code

<div id="map_canvas">
    <button>Click here</button>
</div>
var div = document.getElementById("map_canvas");
var map = plugin.google.maps.Map.getMap(div, {
  "camera": {
    "target": {
      "lat": 37.422858,
      "lng": -122.085065
    },
    "zoom": 15
  }
});

var button = div.getElementsByTagName('button')[0];
button.addEventListener('click', function() {
  map.moveCameraZoomOut();
});