Scale
open class Scale(options: Scale.ScaleOptions = definedExternally) : Control<Scale.ScaleOptions> (source)
A simple scale control that shows the scale of the current center of screen in metric (m/km) and imperial (mi/ft) systems.
Functions
Link copied to clipboard
                  Adds a constructor hook to the class.
Link copied to clipboard
                  Adds the control to the given map.
Link copied to clipboard
                  Returns the HTMLElement that contains the control.
Link copied to clipboard
                  Returns the position of the control.
Link copied to clipboard
                  Merges options into the defaults of the class.
Link copied to clipboard
                  Should return the container DOM element for the control and add listeners on relevant map events. Called on addTo
Link copied to clipboard
                  Optional method. Should contain all clean up code that removes the listeners previously added in onAdd. Called on remove.
Link copied to clipboard
                  Removes the control from the map it is currently active on.
Link copied to clipboard
                  Sets the position of the control.