map

map.worldToLatLng

worldToLatLng(x: number, y: number, z: number, mode?: MapMode): GeoPosition

Convert scene world coordinates back to lat/lng.

Assumes the default coordinate provider (scale=1, raw earth meters). Phase 2 will switch to the active map's scale when a live map is present.

xnumberWorld X coordinate.
ynumberWorld Y coordinate.
znumberWorld Z coordinate.
modeMapModeProjection mode. Defaults to the current map mode, or "planar" if no map is active.

Returns: GeoPosition