I have a list of geometries
I want to get the center of them of all those geometries and then do the "best" zoom(i.e the maximum zoom-in where all the geometries in my list will be visible)
To get the center of the all my geometries i think i can use
1.GeometryEngine.CombineExtents(List<geometry>)
2.GeoView.SetViewPointAsync(viewpoint)
But my main problem is that i don't know how to get the "best" zoom as desribed above
is there anyway i can achieve that
Thanks
One of the constructors of the viewpoint takes a geometry, so just pass in the combined extent to its constructor, and it'll auto-calculate the best zoom to fit that extent.