Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 568 Bytes

File metadata and controls

28 lines (19 loc) · 568 Bytes

💚 This is the latest document.

MAP_READY event

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

Demo code

<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.getVisibleRegion();  <--- This is bad timing.

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

});