onlineTables property

List<ServiceFeatureTable> onlineTables

This list indicates tables that will not be taken offline and will continue to reference online services.

In some situations, you may wish to prevent a non-spatial table from being taken offline even though it is supported. For example, by continuing to reference the live online ServiceFeatureTable, you can benefit from the most up-to-date information.

To make the offline map continue to reference an online table, you add it to the GenerateOfflineMapParameterOverrides.onlineTables collection. By adding a ServiceFeatureTable to this list, you indicate that the table will not be taken offline and it will continue to reference the online source. Be aware that the resulting offline map will require a network connection and may require authentication.

Note that if a ServiceFeatureTable is included in this collection it will not be taken offline - you should update the GenerateOfflineMapParameterOverrides.generateGeodatabaseParameters to remove that table.

If a feature service contains many layers in the web map, you can choose to keep specific tables online by adding them to the GenerateOfflineMapParameterOverrides.onlineTables collection. Any remaining tables that you wish to take offline can be configured using the service's GenerateGeodatabaseParameters.layerOptions in the GenerateOfflineMapParameterOverrides.generateGeodatabaseParameters.

When you create a GenerateOfflineMapParameterOverrides object, this collection will be populated according to the GenerateOfflineMapParameters.onlineOnlyServicesOption setting in the original parameters. Things to consider are:

Implementation

List<ServiceFeatureTable> get onlineTables => _onlineTables.value;