position property

Point3d get position

Retrieves the current position of the camera.

Returns

  • A Point3d representing the current (x,y,z) position of the camera.

Throws

  • An exception if it fails.

Implementation

Point3d get position {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'MapCamera',
    'getPosition',
  );

  return Point3d.fromJson(resultString['result']);
}
set position (Point3d pos)

Sets the camera's position in a 3D space.

Parameters

  • IN pos A Point3d representing the new (x,y,z) position of the camera.

Throws

  • An exception if it fails.

Implementation

set position(final Point3d pos) {
  objectMethod(_pointerId, 'MapCamera', 'setPosition', args: pos);
}