startFollowingPosition method
- GemAnimation? animation,
- int zoomLevel = -1,
- double? viewAngle,
- MapSceneObject? positionObj,
Start following the current position.
Requires automatic map rendering. Disables the cursor if it is enabled.
Parameters
- IN animation Specifies the animation to be used by the operation.
- IN zoomLevel Zoom level where the animation stops. (Use -1 for automatic selection)
- IN viewAngle The camera's pitch angle in degrees. Must be between 0 and 90, where 0 represents a direct top-down view.
- IN positionObj Navigation arrow scene object. If empty, a default SDK navigation arrow is used.
Throws
- An exception if it fails.
Implementation
void startFollowingPosition({
final GemAnimation? animation,
final int zoomLevel = -1,
final double? viewAngle,
final MapSceneObject? positionObj,
}) {
objectMethod(
_pointerId,
'MapView',
'startFollowingPosition',
args: <String, Object>{
if (animation != null) 'animation': animation,
'zoomLevel': zoomLevel,
if (viewAngle != null) 'viewAngle': viewAngle,
if (positionObj != null) 'positionObj': positionObj,
},
);
}