Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 508 Bytes

File metadata and controls

24 lines (17 loc) · 508 Bytes

MAP_READY event

This event is fired when the map is created using the map.getMap() method.

<div id="map_canvas"></div>
var div = document.getElementById("map_canvas");
var map = plugin.google.maps.Map.getMap(div);

// At this time, the map instance is not ready yet.
// So don't do anything.
//
// map.setCameraZoom(3);  <--- This is bad timing.

// After the MAP_READY event, you can modify the map.
map.one(plugin.google.maps.event.MAP_READY, function() {

});