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
Solved! Go to Solution.
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
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
thanks that helped me