LayersControlOptions class

Inheritance
Annotations
  • @JS()
  • @anonymous

Constructors

LayersControlOptions({String? position, bool? collapsed, bool? autoZIndex, bool? hideSingleBase, bool? sortLayers, LayersSortFunction? sortFunction})
factory

Properties

autoZIndex bool
If true, the control will assign zIndexes in increasing order to all of its layers so that the order is preserved when switching them on/off (true by default).
getter/setter pair
collapsed bool
If true, the control will be collapsed into an icon and expanded on mouse hover or touch (true by default).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hideSingleBase bool
If true, the base layers in the control will be hidden when there is only one (false by default).
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
sortFunction LayersSortFunction
A compare function that will be used for sorting the layers, when sortLayers is true. By default, it sorts layers alphabetically by their name.
getter/setter pair
sortLayers bool
Whether to sort the layers. When false, layers will keep the order in which they were added to the control (false by default).
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