toScreenLocation method
Implementation
@override
Future<Point> toScreenLocation(LatLng latLng) async {
try {
final screenPosMap =
await _channel.invokeMethod('map#toScreenLocation', <String, dynamic>{
'latitude': latLng.latitude,
'longitude': latLng.longitude,
});
return Point(screenPosMap['x'], screenPosMap['y']);
} on PlatformException catch (e) {
return Future.error(e);
}
}