M/Control~Control


import Control from 'M/Control';

new Control()

facade/js/control/Control.js, line 19

Members

activated{boolean}

name{string}

Methods

activate()

facade/js/control/Control.js, line 195

function adds the event 'click'

addTo(map)

facade/js/control/Control.js, line 123

This function adds the control to the specified map

Name Type Description
map M.Map

to add the plugin

createView(map)

facade/js/control/Control.js, line 148

This function creates the HTML view for this control

Name Type Description
map M.Map

to add the plugin

deactivate()

facade/js/control/Control.js, line 214

function remove the event 'click'

destroy()

facade/js/control/Control.js, line 271

Destroys the control

getActivationButton(html)

facade/js/control/Control.js, line 185

TODO

Name Type Description
html HTMLElement

to add the plugin

getElement()

facade/js/control/Control.js, line 233

function remove the event 'click'

getPanel(){M.ui.Panel}

facade/js/control/Control.js, line 259

Gets the panel of the control

manageActivation(html)

facade/js/control/Control.js, line 159

TODO

Name Type Description
html HTMLElement

to add the plugin

setImpl(impl)

facade/js/control/Control.js, line 99

This function set implementation of this control

Name Type Description
impl M.Map

to add the plugin

setPanel(panel)

facade/js/control/Control.js, line 246

Sets the panel of the control

Name Type Description
panel M.ui.Panel