ScaleControlOptions class

Inheritance
Annotations
  • @JS()
  • @anonymous

Constructors

ScaleControlOptions({String? position, String? prefix, num? maxWidth, bool? metric, bool? imperial, bool? updateWhenIdle})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
imperial bool
Whether to show the imperial scale line (mi/ft). Default to true.
getter/setter pair
maxWidth num
Number 100 Maximum width of the control in pixels. The width is set dynamically to show round values (e.g. 100, 200, 500).
getter/setter pair
metric bool
Whether to show the metric scale line (m/km). Default to true.
getter/setter pair
position String
The position of the control (one of the map corners). Possible values are 'topleft', 'topright', 'bottomleft' or 'bottomright'
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updateWhenIdle bool
If true, the control is updated on moveend, otherwise it's always up-to-date (updated on move). Default to false.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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