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 use1.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 aboveis there anyway i can achieve thatThanks
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.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.