latLngToPoint method
Converts a point on the sphere surface (with a certain zoom) in a map point.
Implementation
@override
Point<double> latLngToPoint(LatLng latlng, double zoom) {
try {
final projectedPoint = projection.project(latlng);
final scale = this.scale(zoom);
final transformation = _getTransformationByZoom(zoom);
return transformation.transform(projectedPoint, scale);
} catch (_) {
return const Point(0, 0);
}
}