M/impl/control/Panzoom~Panzoom


import Panzoom from 'M/impl/control/Panzoom';

new Panzoom()

impl/ol/control/Panzoom.js, line 16

Extends

  • ol.control.Control

Methods

addTo(map, template)

impl/ol/control/Panzoom.js, line 30

This function adds the control to the specified map

Name Type Description
map M.Map

to add the plugin

template function

template of this control

destroy()

impl/ol/control/Panzoom.js, line 56

This function destroys this control, cleaning the HTML and unregistering all events

getElement()

impl/ol/control/Panzoom.js, line 43

TODO