I have added multiple geometries of different types - polygon and multipolygons on a graphic layer. Now i want to zoom to the extent of all the geometries. I am using below method :
setTimeout(function () {
self.mapView?.goTo(graphicsLayer.graphics.toArray());
}, 2000);
But this zooms in the map to a very small view. Kindly suggest how can i set the zoom level to the extent of all the geometries.