AnsweredAssumed Answered

Show x,y Coordinates in UTM

Question asked by cleotokos on Aug 10, 2016
Latest reply on Feb 4, 2019 by ubatsukh-esristaff


It seems this isn't possible using webMercatorUtils.project(), I'm just wondering if anyone has found a way to successfully convert a point to UTM? I'm trying to have the mouse coordinates show in UTM (NAD 83 Zone 10), but the following doesn't pass webMercatorUtils.canProject():

 

var utmSR = new SpatialReference(102410);

 

var Point = webMercatorUtils.webMercatorToGeographic(evt.mapPoint);

        if (webMercatorUtils.canProject(utmPoint, utmSR)) {

            var utmPoint = webMercatorUtils.project(Point, utmSR);

            console.log(utmPoint.x.toFixed(3) + ", " + utmPoint.y.toFixed(3));

        }

 

The API reference doesn't say anything about why something might not pass canProject()

 

A jsfiddle here

Outcomes