setViewpointRotation method

Future<bool> setViewpointRotation(
  1. {required double angleDegrees}
)

Rotates the map view to the provided angle.

The angle will be normalized between 0 and 360 degrees.

Parameters:

  • angleDegrees — The degrees to rotate to (in counterclockwise direction).

Return Value: A Future.

Implementation

Future<bool> setViewpointRotation({required double angleDegrees}) {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_MapView_setViewpointRotationAsync(
        _handle, angleDegrees, errorHandler);
  });
  return taskHandle.toFuture((element) => element.getValueAsBool()!);
}