ScaleControl class

A simple scale control that shows the scale of the current center of screen in metric (m/km) and imperial (mi/ft) systems.

Inheritance
Annotations
  • @JS('L.control.scale')

Constructors

ScaleControl([ScaleControlOptions? options])

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addTo(LeafletMap map) Control
Adds the control to the given map.
inherited
getContainer() Element
Returns the HTMLElement that contains the control.
inherited
getPosition() String
Returns the position of the control.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove() Control
Removes the control from the map it is currently active on.
inherited
setPosition(String position) Control
Sets the position of the control.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited