coordinates property

Coordinates get coordinates

Get direct access to the coordinates attached to this landmark (centroid coordinates).

Returns

Throws

  • An exception if it fails.

Implementation

Coordinates get coordinates {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'Landmark',
    'getCoordinates',
  );

  return Coordinates.fromJson(resultString['result']);
}
set coordinates (Coordinates coords)

Set the centroid coordinates.

Parameters

Throws

  • An exception if it fails.

Implementation

set coordinates(final Coordinates coords) {
  objectMethod(
    _pointerId,
    'Landmark',
    'setCoordinates',
    args: coords.toJson(),
  );
}