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

txProject.

Projects geographic coordinates to Web Mercator world pixels at a given zoom; clamps latitude to about ±85.05°.

Parameters: point with lat/lng in degrees and zoom. Synchronous return: { x, y } in Vue, Offset in Dart; world pixels, not pixels relative to the visible viewport.

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

Future<void> example() async {
  print(txProject(const TxCoordinate(52.52, 13.405), 5));
}