coordinates property
Coordinates
get
coordinates
Retrieves the centroid coordinates of this landmark.
The centroid is used for distance calculations and map centering. For the landmark's full spatial extent use geographicArea.
Returns
- Coordinates: The landmark's centroid coordinates.
Implementation
Coordinates get coordinates {
final OperationResult resultString = objectMethod(
pointerId,
'Landmark',
'getCoordinates',
);
return Coordinates.fromJson(resultString['result']);
}
set
coordinates
(Coordinates coords)
Sets the centroid coordinates for this landmark.
Parameters
coords: The Coordinates instance that defines the new centroid.
Implementation
set coordinates(final Coordinates coords) {
objectMethod(
pointerId,
'Landmark',
'setCoordinates',
args: coords.toJson(),
);
}