Show / Hide Table of Contents

Constructor ArcGISTiledLayer

ArcGISTiledLayer(Uri)

Initializes a new instance of the ArcGISTiledLayer class from the specified URI.

Declaration
public ArcGISTiledLayer(Uri source)
Parameters
Type Name Description
System.Uri source

The URI to the REST endpoint of an ArcGIS map service or ArcGIS map service portal item, or the path to a local tile package(.tpk/.tpkx).

Remarks

If the specified URI is a map service URL, the MapServer must have "Single Fused Map Cache" set to true in its ArcGIS REST Services Directory. If the specified URI is a portal item URL the underlying Item will be created and accessible through Item. See the Source property for examples of supported System.Uri sources.

Exceptions
Type Condition
System.ArgumentNullException

source

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.14
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
Relevant samples
Display layer view state: Determine if a layer is currently being viewed.
Export tiles: Download tiles to a local tile cache file stored on the device.

ArcGISTiledLayer(TileCache)

Initializes a new instance of the ArcGISTiledLayer class from a local TileCache.

Declaration
public ArcGISTiledLayer(TileCache tileCache)
Parameters
Type Name Description
TileCache tileCache

The local TileCache object.

Exceptions
Type Condition
System.ArgumentNullException

tileCache

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
Relevant samples
Edit and sync features: Synchronize offline edits with a feature service.
Export tiles: Download tiles to a local tile cache file stored on the device.
Generate geodatabase: Generate a local geodatabase from an online feature service.
Offline geocode: Geocode addresses to locations and reverse geocode locations to addresses offline.
Offline routing: Solve a route on-the-fly using offline data.

ArcGISTiledLayer(Item)

Initializes a new instance of the ArcGISTiledLayer class from the specified Item.

Declaration
public ArcGISTiledLayer(Item item)
Parameters
Type Name Description
Item item

The ArcGIS Item

Remarks

The item's type should be MapService. The Item will be accessible through the Item property.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
In This Article
Back to top Copyright © 2022 Esri.