OverlayService class Maps & 3D Scene

Overlay service class

Manages overlay datasets. It lets callers obtain the available overlays, enumerate or inspect overlay entries for UI lists or sync logic, enable or disable entire overlays or specific categories across registered consumers (map views, alarms, etc.), and check whether a given overlay or category is currently active. Typical uses are populating overlay pickers, toggling datasets from settings, and driving overlay-enabled render or alarm behavior.

Constructors

OverlayService()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

cancelGrabOverlayOfflineData(int uid) → void
Cancel grab latest overlay offline data over all existing offline maps area.
disableOverlay(int uid, {int categUid = -1}) GemError
Disables the overlay with the given uid. This will deactivate the overlay for all registered services ( map views, alarms, etc )
disableOverlayOfflineDataGrabber(int uid) GemError
Disables the offline data grabber for the overlay with the given uid.
enableOverlay(int uid, {int categUid = -1}) GemError
Enables the overlay with the given uid. This will activate the overlay for all registered services ( map views, alarms, etc ).
enableOverlayOfflineDataGrabber(int uid) GemError
Enables the offline data grabber for the overlay with the given uid. The offline data grabber downloads an overlay covering dataset for every new downloaded road map content. The offline data is automatically grabbed immediately after a road map content download finishes & is stored in the SDK permanent cache. Parameters
getAvailableOverlays({void onCompleteDownload(GemError error)?}) → (OverlayCollection, bool)
Get a list of available SDK overlays.
grabOverlayOfflineData({required int uid, required void onComplete(GemError error)}) TaskHandler?
Grab latest overlay offline data over all existing offline maps area
isOverlayEnabled(int uid, {int categUid = -1}) bool
Check if the overlay with the given uid is enabled.
isOverlayOfflineDataGrabberEnabled(int uid) bool
Check if the offline data grabber for the given overlay uid is enabled.
isOverlayOfflineDataGrabberSupported(int uid) bool
Check if the offline data grabber for the given overlay uid is supported.