Can I call and set the XY location of center of the map with a button to variables? Any example?
Maybe each time the map moves it resets the variables?
On my button I can do this...But need to figure out how to convert to UTM Zone 17N NAD83
Even if I reference a spatial reference in the map....it still spits out Web Aux Sphere
spatialReference: SpatialReference { wkid:26917 }
var centercoord7 = mapView.currentViewpointCenter.center.x
console.log("centercoord7 : " + centercoord7);
var centercoord8 = mapView.currentViewpointCenter.center.y
console.log("centercoord8 : " + centercoord8);
I tried this but not putting it into UTM Zone 17N Nad83
var centercoord2 = CoordinateFormatter.toUtm(mapView.currentViewpointCenter.center, Enums.UtmConversionModeNorthSouthIndicators, 10);
I can convert the Web Aux Sphere to Lat Long like this
Anyone know how I can convert to UTM Zone 17N NAD83??????
var centercoord = CoordinateFormatter.toLatitudeLongitude(mapView.currentViewpointCenter.center, Enums.LatitudeLongitudeFormatDecimalDegrees, 6)
I finally found this....just need to find a way to pass the center point to this code and think I can work from there....
THANK YOU for all your help Keith....it is very appreciated!!!!!!! Cheers