private async void ZoomToAreas()
        {
            // Calculate full extent of all areas.
            Envelope fullExtent = GeometryEngine.CombineExtents(MapAreas.Select(area => area.MapArea.AreaOfInterest));

            // Zoom to the areas with a buffer.
            await _mapViewService.SetViewpointGeometryAsync(fullExtent, 20);
        }