LayerManager class
Manager for handling custom map layers (e.g. Roads, BTS, City Plans).
Constructors
- LayerManager(MapLibreMapController mapController)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- mapController → MapLibreMapController
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
ensure(
String layerId) → Future< void> - Download and merge a custom layer into the active style.
-
getCatalog(
) → List< PowerMapLayerGroup> - Get the full layer catalog.
-
getGroup(
String groupKey) → List< PowerMapLayerItem> ? - Get items for a specific group (e.g., 'city', 'transport').
-
getLayerState(
String layerId) → Map< String, dynamic> - Check the loaded and visibility state of a specific layer.
-
hide(
String layerId) → Future< void> - Hide a layer.
-
hideGroup(
String groupKey) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setBaseStyle(
String styleName) → Future< void> - Switch the base map style and restore all custom layers automatically.
-
setIndoorLevel(
String layerId, int level) → Future< void> - Legacy helper for indoor levels layout adjustments
-
setOpacity(
String layerId, double opacity) → Future< void> - Set the opacity of a layer (0.0 to 1.0).
-
show(
String layerId) → Future< void> - Ensure and show a layer.
-
showGroup(
String groupKey) → Future< void> -
toggle(
String layerId) → Future< void> - Toggle visibility of a layer.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited