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
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.