transformWgsToScreen method

Point<int> transformWgsToScreen(
  1. Coordinates coords
)

Convert a WGS84 coordinate to a screen coordinate.

Parameters

  • IN coords WGS Coordinates

Returns

  • The screen coordinates relative to view parent screen

Throws

  • An exception if it fails.

Implementation

Point<int> transformWgsToScreen(final Coordinates coords) {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'MapView',
    'transformWgsToScreen',
    args: coords,
  );

  return XyType<int>.fromJson(resultString['result']).toPoint();
}