latLngToXY method

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

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) =>
    _transformation.transform(
      SphericalMercator.projectLng(latlng.longitude),
      SphericalMercator.projectLat(latlng.latitude),
      scale,
    );