I have 2 points with their coordinates, I need to center those 2 points and have the map adjust so that those 2 points are displayed on the map, I'm using the goTo() method but it only lets me add a single location to center
The view.goTo() method can also take an array of graphics or geometries so you can pass multiple values at once.
https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#goTo
https://codepen.io/odoe/pen/OJzRrGM?editors=0010
thanks that helped me
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.