pointToLatLng method
Converts a map point to the sphere coordinate (at a certain zoom).
Implementation
LatLng? pointToLatLng(CustomPoint point, double zoom) {
final scale = this.scale(zoom);
final untransformedPoint =
transformation.untransform(point, scale.toDouble());
try {
return projection.unproject(untransformedPoint);
} catch (e) {
return null;
}
}