getMap

returns a GeoChart map object

any getMap();
anya GeoChart 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