Property OnlineLayers
OnlineLayers
Gets a mutable list of layers that will not be taken offline and will continue to reference online services.
Declaration
public IList<Layer> OnlineLayers { get; }
Property Value
Type | Description |
---|---|
System. |
A mutable list of layers that will not be taken offline and will continue to reference online services. |
Remarks
In some situations, you may wish to prevent a layer from being taken offline even though it is
supported. For example, by continuing to reference the live online service for a
Feature
To make the offline map continue to reference an online layer add it to the Online
Note that if a Layer is included in this collection it will not be taken offline - you should update the relevant parameters to remove the details pertaining to that layer:
-
Export
Tile can be removed to prevent an ArcCache Parameters GISTiled from being taken offline.Layer -
Export
Vector can be removed to prevent an ArcTiles Parameters GISVector from being taken offline.Tiled Layer -
Generate
Geodatabase can be removed for an entire feature service or updated to remove an individual FeatureParameters Layer using LayerOptions .
If a feature service contains many tables in the web map, you can choose to keep specific layers online
by adding them to the Online
When you create a Generate
-
If you set Online
Only to Exclude then this collection will be empty.Services Option -
If you set Online
Only to Include then this collection will contain each online-only Layer in the web map (e.g. those which cannot be taken offline).Services Option -
If you set Online
Only to UseServices Option Authored then this collection will contain each Layer that the web map author selected to remain online.Settings
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.10 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.10 - 200.6 |
Xamarin.Android | 100.10 - 100.15 |
Xamarin.iOS | 100.10 - 100.15 |
UWP | 100.10 - 200.6 |