LineManager class

Inheritance

Constructors

LineManager(MapLibreMapController controller, {bool enableInteraction = true})

Properties

allLayerProperties → List<LayerProperties>
Layer property definitions (one per backing style layer). Override in subclasses to specify visual styling for data-driven attributes.
no setteroverride
annotations → Set<Line>
Current set of managed annotations.
no setterinherited
controller → MapLibreMapController
finalinherited
enableInteraction → bool
If false, the manager disables user interaction (e.g. dragging) for its annotations.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
id → String
Base identifier of the manager. Use layerIds for concrete layer ids.
finalinherited
isInitialized → bool
Tracks whether the manager and its layers were initialized.
no setterinherited
layerIds → List<String>
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectLayer → int Function(Line)?
Optional function used to select which layer/source a given annotation should live in (e.g. pattern vs non-pattern lines). If null, a single layer/source is used.
finalinherited

Methods

add(Line annotation) → Future<void>
Adds a single annotation.
inherited
addAll(Iterable<Line> annotations) → Future<void>
Adds multiple annotations (faster than adding one-by-one).
inherited
byId(String id) → Line?
Returns the annotation with the given id, or null if not found.
inherited
clear() → Future<void>
Removes all annotations.
inherited
dispose() → Future<void>
Fully dispose resources (layers & sources). Manager is unusable after.
inherited
initialize() → Future<void>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(Line annotation) → Future<void>
Removes a single annotation.
inherited
removeAll(Iterable<Line> annotations) → Future<void>
Removes multiple annotations.
inherited
set(Line annotation) → Future<void>
Updates (re-sets) an existing annotation quickly by only replacing its underlying GeoJSON feature if it remains on the same logical layer.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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