toScreenLocation method

  1. @override
Future<Point<num>> toScreenLocation(
  1. LatLng latLng
)
override

Implementation

@override
Future<Point> toScreenLocation(LatLng latLng) async {
  var screenPosition =
      _map.project(LngLat(latLng.longitude, latLng.latitude));
  return Point(screenPosition.x.round(), screenPosition.y.round());
}