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

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.

ts
function txUnproject(x: number, y: number, zoom: number): TxCoordinate
ts
import { txProject, txUnproject } from '@tekocloud.de/tecexpress'
const pixel = txProject({ lat: 52.52, lng: 13.405 }, 5)
console.log(txUnproject(pixel.x, pixel.y, 5))