latLngToXY method

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

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

Implementation

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