Class: Plugin

Plugin

Main facade plugin object. This class creates a plugin
object which has an implementation Object


new Plugin(impl)

Parameters:
Name Type Description
impl Object

implementation object

Source:

Extends

Methods


addTo(map)

This function provides the implementation
of the object

Parameters:
Name Type Description
map Object

the map to add the plugin

Source:

createView(map)

This function creates the HTML view for this control

Parameters:
Name Type Description
map M.Map

to add the plugin

Source:

fire()

Sets the callback when the instace is loaded

Inherited From:
Source:

getImpl()

This function provides the implementation
of the object

Inherited From:
Source:
Returns:
Type
Object

on()

Sets the callback when the instace is loaded

Inherited From:
Source:

once()

Sets the callback when the instace is loaded

Inherited From:
Source:

setImpl(impl)

This function set implementation of this control

Parameters:
Name Type Description
impl M.Map

to add the plugin

Inherited From:
Source:

un()

Sets the callback when the instace is loaded

Inherited From:
Source: