registerOnMapAngleUpdate method

void registerOnMapAngleUpdate(
  1. MapAngleUpdateCallback? mapAngleUpdatedCallback
)

Registers for map angle updates.

The callback is invoked when the map bearing changes, either from user rotation or GPS updates while tracking.

Parameters

  • mapAngleUpdatedCallback: (MapAngleUpdateCallback?) Receives the map angle in degrees (0–360). Pass null to unregister.

Implementation

void registerOnMapAngleUpdate(
  final MapAngleUpdateCallback? mapAngleUpdatedCallback,
) {
  _mapAngleUpdateCallback = mapAngleUpdatedCallback;

  GemKitPlatform.instance.filterEvent(
    pointerId,
    'onMapAngleUpdate',
    mapAngleUpdatedCallback == null,
  );
}