latLngToXY method

  1. @override
(double, double) latLngToXY(
  1. LatLng latlng,
  2. double scale
)
override

Converts a point on the sphere surface (with a certain zoom) in a map point.

Implementation

@override
(double, double) latLngToXY(LatLng latlng, double scale) {
  final (x, y) = projection.projectXY(latlng);
  final transformation = _getTransformationByZoom(zoom(scale));
  return transformation.transform(x, y, scale);
}