coordinates property
Get direct access to the coordinates attached to this landmark (centroid coordinates).
Returns
- Coordinates object
Throws
- An exception if it fails.
Implementation
Coordinates get coordinates {
final OperationResult resultString = objectMethod(
_pointerId,
'Landmark',
'getCoordinates',
);
return Coordinates.fromJson(resultString['result']);
}
Set the centroid coordinates.
Parameters
- IN coords Coordinates object
Throws
- An exception if it fails.
Implementation
set coordinates(final Coordinates coords) {
objectMethod(
_pointerId,
'Landmark',
'setCoordinates',
args: coords.toJson(),
);
}