getMap

returns a GoogleMap map object

object getMap( [boolean waitMap] );
waitMapbooleanif true, the method returns a promise
objecta GoogleMap map object or a promise

Example

var mapObj = $$("map").getMap();

Details

The method can take the waitMap parameter set to true. If passed, the method returns a promise which will be resolved when the map is rendered.

$$("map").getMap(true).then(function(mapObj){
    // some code
});
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
If you have not checked yet, be sure to visit site of our main product Webix ui component library and page of google maps javascript product.