toScreenLocationBatch method

  1. @override
Future<List<Point<num>>> toScreenLocationBatch(
  1. Iterable<LatLng> latLngs
)
override

Implementation

@override
Future<List<Point>> toScreenLocationBatch(Iterable<LatLng> latLngs) async {
  return latLngs.map((latLng) {
    var screenPosition =
        _map.project(LngLat(latLng.longitude, latLng.latitude));
    return Point(screenPosition.x.round(), screenPosition.y.round());
  }).toList(growable: false);
}