latLngToPoint method
Converts a point on the sphere surface (with a certain zoom) in a map point.
Implementation
@override
CustomPoint<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.toDouble());
} catch (e) {
return const CustomPoint(0, 0);
}
}