C# Class ESRI.ArcGIS.Client.Toolkit.DataSources.WebTiledLayer

A WebTiledLayer is a tiled layer where the tiles are obtained directly from the provided URL, as opposed to requests made against a service. Typically, Web Tiled Layers are used as a basemap.

As a minimum, the property TemplateUrl must be defined. If the tileInfo is not specified then the spatial reference and tiling scheme of the layer is assumed to be in the web mercator projection and google/ms/esri web mercator tiling scheme.

Tile layers are added to a web map as layer type: WebTiledLayer (exposed in the UI as a Tile Layer).
Inheritance: TiledMapServiceLayer, IAttribution, ITileCache
Exibir arquivo Open project: Esri/arcgis-toolkit-sl-wpf

Public Properties

Property Type Description
CopyrightTextProperty System.Windows.DependencyProperty
SubDomainsProperty System.Windows.DependencyProperty
TemplateUrlProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
CreateAttributionTemplate void
OnSubDomainsPropertyChanged void
OnTemplateUrlPropertyChanged void

Public Methods

Method Description
GetTileUrl ( int level, int row, int col ) : string

Returns a URL to the specified tile in an WebTiledLayer.

Initialize ( ) : void

Initializes the resource.

Override this method if your resource requires asyncronous requests to initialize, and call the base method when initialization is completed.

Upon completion of initialization, check the ESRI.ArcGIS.Client.Layer.InitializationFailure for any possible errors.

SetFullExtent ( Envelope extent ) : void

Sets the full extent of the layer.

SetTileInfo ( TileInfo tileInfo ) : void

Sets the tile scheme of the tile layer. If not set then assume standard web mercator tiling scheme.

WebTiledLayer ( ) : System

Initializes a new instance of the WebTiledLayer class.

Private Methods

Method Description
CreateAttributionTemplate ( ) : void
OnSubDomainsPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnTemplateUrlPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Method Details

GetTileUrl() public method

Returns a URL to the specified tile in an WebTiledLayer.
public GetTileUrl ( int level, int row, int col ) : string
level int Layer level
row int Tile row
col int Tile column
return string

Initialize() public method

Initializes the resource.

Override this method if your resource requires asyncronous requests to initialize, and call the base method when initialization is completed.

Upon completion of initialization, check the ESRI.ArcGIS.Client.Layer.InitializationFailure for any possible errors.

public Initialize ( ) : void
return void

SetFullExtent() public method

Sets the full extent of the layer.
public SetFullExtent ( Envelope extent ) : void
extent Envelope The extent.
return void

SetTileInfo() public method

Sets the tile scheme of the tile layer. If not set then assume standard web mercator tiling scheme.
public SetTileInfo ( TileInfo tileInfo ) : void
tileInfo TileInfo The tile info.
return void

WebTiledLayer() public method

Initializes a new instance of the WebTiledLayer class.
public WebTiledLayer ( ) : System
return System

Property Details

CopyrightTextProperty public_oe static_oe property

Dependency property for CopyrightText.
public static DependencyProperty,System.Windows CopyrightTextProperty
return System.Windows.DependencyProperty

SubDomainsProperty public_oe static_oe property

Dependency property for SubDomains.
public static DependencyProperty,System.Windows SubDomainsProperty
return System.Windows.DependencyProperty

TemplateUrlProperty public_oe static_oe property

Dependency property for TemplateUrl.
public static DependencyProperty,System.Windows TemplateUrlProperty
return System.Windows.DependencyProperty