Hi, we are working with the Maui Maps SDK to download the utility network as an offline map. Based on the instructions https://www.esri.com/arcgis-blog/products/utility-network/developers/offline-utility-networks-in-arcgis-maps-sdks-for-native-apps-part-2 and https://developers.arcgis.com/net/utility-network/take-a-utility-network-offline/
We have a web map created from a feature service. The feature service includes a utility network. We have wrote something like :
var task = await OfflineMapTask.CreateAsync(webmap)
var params = task.CreateDefaultGenerateOfflineMapParametersAsync(areaOfInterest)
var paramsOverride = await task.CreateGenerateOfflineMapParameterOverridesAsync(params);
var overrideKey = new OfflineMapParametersKey(webmap.UtilityNetworks.FirstOrDefault());
paramsOverride.GenerateGeodatabaseParameters[overrideKey].UtilityNetworkSyncMode = UtilityNetworkSyncMode.SystemTablesAndTopology;
var job = task.GenerateOfflineMap(params, storagePath, paramsOverride);
On line 5, we tried setting the different UtilityNetworkSyncModes. On mode 'None', the offline map downloads successfully but it includes the network. On mode 'SystemTables', the offline map (and network) gets downloaded. On mode 'SystemTablesAndTopology', the download fails with error 'Not found: File does not exist in the package'. Setting the mode is not giving the results indicated by the docs.
- Am I using the wrong approach to select the UtilityNetworkSyncMode before downloading ?
- Or is it not possible to choose the sync mode when taking a webmap offline and the sync mode is entirely determined by the 'Offline Capabilities for Utility Networks' setting mentioned in the article.
Could you please point me in the right direction for my task ? Thank you. We are using the 200.5.0 SDK.