cursorWgsPosition property

Coordinates get cursorWgsPosition

Retrieves the cursor's current position in WGS84 geographic coordinates.

Returns Coordinates representing the cursor's location as latitude, longitude, and optionally altitude in the WGS84 coordinate system. This represents the geographic location on Earth corresponding to the cursor's screen position.

If the applied map style includes elevation data and terrain topography is loaded, the returned coordinates include altitude information. Check terrain support using the hasTerrainTopography getter.

Use cursorScreenPosition to get the cursor's position in physical pixels instead of geographic coordinates.

See also:

Implementation

Coordinates get cursorWgsPosition {
  final OperationResult val = objectMethod(
    _pointerId,
    'MapView',
    'getCursorWgsPosition',
  );
  return Coordinates.fromJson(val['result']);
}