t×tecexpressby TeKOcloud
DEv0.7.1
API & types / FLUTTER

txUnproject.

Converts Web Mercator world pixels back to geographic coordinates at the same zoom.

Parameters: Vue x, y, zoom; Dart Offset point, zoom. Synchronously returns TxCoordinate with lat/lng in degrees; use the same zoom as txProject.

dart
TxCoordinate txUnproject(Offset point, double zoom)
dart
import 'package:tecexpress/tecexpress.dart';

Future<void> example() async {
  final pixel = txProject(const TxCoordinate(52.52, 13.405), 5);
  print(txUnproject(pixel, 5).lat);
}