pointToLatLng method
The inverse of latlngToPoint
.
Projects pixel coordinates on a given zoom into latlng coordinates.
Implementation
@override
LatLng? pointToLatLng(UPoint point, double? zoom) {
try {
double? scale = this.scale(zoom);
UPoint untransformedPoint = transformation.untransform(point, scale);
return projection!.unproject(untransformedPoint);
} catch (e) {
return null;
}
}