getAltitude method
- Coordinates coordinates
Get altitude at the given coordinates.
Use hasTerrainTopography to check if the map view has the capability to return an altitude at coordinates
Parameters
- IN coordinates WGS Coordinates
Returns
- Altitude as meters from sea level if capability exist, otherwise returns 0
Implementation
double getAltitude(Coordinates coordinates) {
final OperationResult resultString = objectMethod(
_pointerId,
'MapView',
'getAltitude',
args: coordinates,
);
return resultString['result'];
}