M/control/Scale~Scale


import Scale from 'M/control/Scale';

new Scale(format)

facade/js/control/Scale.js, line 24
Name Type Description
format String

format response

Extends

  • M.Control

Members

module:M/control/Scale~Scale.NAME{string}

Template for this controls - button

Methods

createView(map){Promise}

facade/js/control/Scale.js, line 45

This function creates the view to the specified map

Name Type Description
map M.Map

map to add the control

Returns:
html response

destroy()

facade/js/control/Scale.js, line 73

Destroys the control

equals()

facade/js/control/Scale.js, line 61

This function checks if an object is equals to this control