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