mapView.goTo not working with projected data

493
1
05-16-2018 05:34 AM
JamesS1
Occasional Contributor

I have a feature layer with the data in UTM and I'm trying to use mapView.goTo and pass in the geometry of one of the features. Nothing happens and I'm guessing this is because the geometry isn't geographic, WGS84, or web mercator. Am I missing something?

When I use webMercatorUtils and canProject passing in the wkid for my UTM coordinates, it returns false - meaning I can't project from UTM to Web Mercator.

0 Kudos
1 Reply
JamesS1
Occasional Contributor

Nevermind - forgot to set the outSpatialReference on the feature layer query...