M/Plugin~Plugin


import Plugin from 'M/Plugin';

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

new Plugin()

facade/js/Plugin.js, line 16

Methods

addTo(map)

facade/js/Plugin.js, line 26

This function provides the implementation of the object

Name Type Description
map Object

the map to add the plugin

createView(map)

facade/js/Plugin.js, line 60

This function creates the HTML view for this control

Name Type Description
map M.Map

to add the plugin

getControls(controls)

facade/js/Plugin.js, line 69

This function returns the controls of a plugin

Name Type Description
controls Array