returns a GoogleMap map object
waitMap | boolean | if true, the method returns a promise |
object | a GoogleMap map object or a promise |
var mapObj = $$("map").getMap();
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