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.
Offset txProject(TxCoordinate point, double zoom)import 'package:tecexpress/tecexpress.dart';
Future<void> example() async {
print(txProject(const TxCoordinate(52.52, 13.405), 5));
}