I have an app that allows the user to draw a shape (on a div above the map) then converts that shape into an ersi shape. I want to zoom to the bounds of the shape. I see that I can use extent on the map view, but I'm not sure how to convert my xy points into what the extent expects. I know that you can convert xy to lat/lon with webMercatorUtils, but the extent is obviously using a different spatial reference.
Just trying to wrap my head around this issue, any help would be appreciated.