SymbolManager class
- Inheritance
-
- Object
- AnnotationManager<
Symbol> - SymbolManager
Constructors
- SymbolManager(MapLibreMapController controller, {bool iconAllowOverlap = false, bool textAllowOverlap = false, bool iconIgnorePlacement = false, bool textIgnorePlacement = false, 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<
Symbol> -
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(Symbol)?
-
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(
Symbol annotation) → Future< void> -
Adds a single annotation.
inherited
-
addAll(
Iterable< Symbol> annotations) → Future<void> -
Adds multiple annotations (faster than adding one-by-one).
inherited
-
byId(
String id) → Symbol? -
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(
Symbol annotation) → Future< void> -
Removes a single annotation.
inherited
-
removeAll(
Iterable< Symbol> annotations) → Future<void> -
Removes multiple annotations.
inherited
-
set(
Symbol 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
-
setIconAllowOverlap(
bool value) → Future< void> - If true, the icon will be visible even if it collides with other previously drawn symbols.
-
setIconIgnorePlacement(
bool value) → Future< void> - If true, the text will be visible even if it collides with other previously drawn symbols.
-
setTextAllowOverlap(
bool value) → Future< void> - If true, other symbols can be visible even if they collide with the icon.
-
setTextIgnorePlacement(
bool value) → Future< void> - If true, other symbols can be visible even if they collide with the text.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited