polygonCoordToLatLng method

LatLng? polygonCoordToLatLng(
  1. double x,
  2. double y, {
  3. double? z,
})

Implementation

LatLng? polygonCoordToLatLng(double x, double y, {double? z}) {
  try {
    var point = lambert.Point(y, x, 0.0);
    var result = point.convert(lambert.Zone.L93).degree();
    return LatLng(result.y, result.x);
  } catch (e, s) {
    _debugGeoJsonUtilsPrint("❌ Cant parse poly to coords: $e");
    _debugGeoJsonUtilsPrint("πŸ“œ Trace: $s \n πŸ“œ");
  }
  return null;
}