Click or drag to resize

GenerateOfflineMapParametersOnlineOnlyServicesOption Property

Describes how data that requires an online service will be handled when taking a map offline.

Namespace:  Esri.ArcGISRuntime.Tasks.Offline
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.9.0.0
Syntax
C#
public OnlineOnlyServicesOption OnlineOnlyServicesOption { get; set; }

Property Value

Type: OnlineOnlyServicesOption
Remarks

Online layers and tables cannot be taken offline in the following situations:

  • The layer or table is using a service that cannot be taken offline. For example, WmsLayer or WmtsLayer.
  • The layer or table is using a service that supports offline, such as an ArcGISFeatureLayer, but synchronization has not been enabled on the service (SupportsSync is set to false). Services utilize synchronization to take layers and tables offline and synchronize changes.

Online services that cannot be taken offline are referred to as online-only services. Online-only services require network connectivity and may involve authentication. Examples of online-only services include:

  • Dynamic information, such as changing weather or traffic conditions, that delivers frequent and regular updates to the app.
  • Large datasets that would be impractical to take offline to a device.

This property allows you to specify how online-only data will be handled when taking the map offline. There are two options:

  • Exclude means that any data that cannot be taken offline will be omitted from the offline map. Choosing this option means that your offline map will not require a network connection but may not include all of the data from the original web map.
  • Include means that data that cannot be taken offline will be accessed by URL in the offline map. Choosing this option means that your offline map will retain all of the information from the original web map but it will require a network connection and may require authentication.

The default value is Exclude.

See Also