MapTileSwitchController class

This class will help developper to bind action from their parent widget which use OwlnextMap This allow to bind callback when tile need to be changed It is the center place where developer can affect the background tile map he needs to display

Constructors

MapTileSwitchController()

Properties

currentSelectedTileLayer TileLayerProvider
the tileLayer to display in FlutterMap component
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedTileIndex int
no setter
tileLayers List<TileLayerProvider>
getter to retrieve those layers (with a fallback to Open Street Map layer if developer did not set any layer)
no setter

Methods

attachChangeTileSelectionCallback({required void callback(int selectedNewIndex)}) → void
this setter will bind a callback to the controller so you can run your own callback when a tile switch changed
attachOnSelectedTileChangedCallback(VoidCallback callback) → void
getTileSelectorWidget() Widget
handleChangeSelectedTile(int newSelectedTileIndex) → void
this is the logic applied when user change of selected tile
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onSelectedTileChanged() → void
setTileLayers(List<TileLayerProvider> layers) → void
setTileSwitcherWidget(Widget widget) → void
toString() String
A string representation of this object.
inherited

Operators

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