MapIFrameAPI lets you retrieve a new api associated to an iframe.
Members
-
version :string
-
The api version number.
Type:
- string
Methods
-
ready(elt, callback)
-
Get the api instance for an iframe when the map is ready.
Parameters:
Name Type Description elt
Element | string the iframe element or its ID
callback
function a function with the api as argument
Example
MapIFrameAPI.ready('map', function(api) { // Do something with the api... }