MarkerManager class

Internal manager for handling symbol-based and widget-based markers on the map.

Constructors

MarkerManager(MapLibreMapController _controller)
Creates a MarkerManager with a MapLibreMapController.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
widgetMarkers ValueNotifier<List<PowerWidgetMarker>>
Notifies the PowerMap widget when the list of custom widget markers changes.
final

Methods

addMarker(LatLng position, {String? color, String? iconImage, double size = 1.0, Map<String, dynamic>? data, double opacity = 1.0, double? iconRotate, String? iconAnchor}) Future
Adds a customizable marker symbol to the MapLibre controller.
addWidgetMarker(LatLng position, Widget widget, {String? id, Alignment alignment = Alignment.center}) → void
Adds a Flutter widget as a marker pinned to the given position.
clearMarkers() Future<void>
Removes all symbol markers and circles from the map.
clearWidgetMarkers() → void
Removes all widget-based markers.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeMarker(dynamic marker) Future<void>
Removes a specific marker (Symbol or Circle).
setMarkersOpacity(double opacity) Future<void>
Sets the opacity of all currently visible native markers (GL Circles and Symbols) to opacity in a single bulk update.
toString() String
A string representation of this object.
inherited

Operators

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