transformWgsListToScreen method

List<Point<int>> transformWgsListToScreen(
  1. List<Coordinates> coords
)

Convert a list of WGS84 coordinates to screen coordinates.

Parameters

  • IN coords list of WGS Coordinates

Returns

The screen coordinates relative to view parent screen

Throws

  • An exception if it fails.

Implementation

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

  final List<dynamic> listJson = resultString['result'];
  final List<Point<int>> retList = listJson
      .map(
        (final dynamic categoryJson) =>
            XyType<int>.fromJson(categoryJson).toPoint(),
      )
      .toList();
  return retList;
}