# Lat,Lng to viewport Pixel

**URL:** <https://community.cesium.com/t/lat-lng-to-viewport-pixel/868>\
**Category:** CesiumJS\
**Created:** [December 9, 2013, 11:35pm UTC](https://community.cesium.com/t/lat-lng-to-viewport-pixel/868 "2013-12-09T23:35:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan\_Wagner](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@Jonathan\_Wagner](https://community.cesium.com/u/Jonathan_Wagner)\
**Post date:** [December 9, 2013, 11:35pm UTC](https://community.cesium.com/t/lat-lng-to-viewport-pixel/868/1 "2013-12-09T23:35:12Z")

</div>

Hey Guys,

I am trying to figure out how to convert a latitude, longitude point to a view port pixel. I figured out the other direction from pixel to lat, lng easily enough but I am having a challenge figuring this out. Any help would be greatly appreciated. Also if anyone knows off hand how to convert a traditional 2D web zoom (such as that used on google) to a height in meters, that would also be appreciated.

Thanks so much ahead of time.

---

<div class="post-metadata">

**Author:** ![Jonathan\_Wagner](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@Jonathan\_Wagner](https://community.cesium.com/u/Jonathan_Wagner)\
**Post date:** [December 10, 2013, 1:57am UTC](https://community.cesium.com/t/lat-lng-to-viewport-pixel/868/2 "2013-12-10T01:57:41Z")

</div>

I found it for anyone searching, Cesium.SceneTransforms.wgs84ToWindowCoordinates(scene, cartesian3)
