TransWikia.com

Convert pixel x,y position on map to latitude and longitude

Geographic Information Systems Asked on December 20, 2021

My map takes up 100% width and height of the browser screen.. I have a draggable div that is super imposed over the map, I am am capturing this divs position using offset(); to get the pixel top and left values. I would like to convert these values to latitude and longitude. Is this possible?

One Answer

You can convert a screen point to a map point using https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#toMap and then get the latitude/longitude from that point.

Answered by Bjorn Svensson on December 20, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP