registerOnMapAngleUpdate method

void registerOnMapAngleUpdate(
  1. MapAngleUpdateCallback? mapAngleUpdatedCallback
)

This is called by the map view when the map angle is changed.

The map angle is between 0 and 360 degrees, where 0 represents north-up alignment.

This happens when either the user rotates the map, or the GPS angle is changed while in tracking mode

Parameters

  • IN angle New angle of the map view

Implementation

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

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