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
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.