C# 클래스 csShared.Geo.Esri.WebTileLayer2

OpenStreetMap tiled layer. Note, use of the OpenStreetMapLayer in your map application requires attribution. Please read the usage guidelines for using OpenStreetMap tile layers in your application.

To use an OpenStreetMap tile layer in your map, add the OpenStreetMapLayer, select a style, and add attribution.

<esri:Map x:Name="MyMap"> <esri:OpenStreetMapLayer Style="Mapnik" /> </esri:Map>
<esri:Attribution Layers="{Binding ElementName=MyMap, Path=Layers}" />

When including the OpenStreetMapLayer in your map application, you must also include attribution. For the latest information, please read the usage guidelines for using OpenStreetMap tile layers in your application.

OpenStreetMap is released under the Create Commons "Attribution-Share Alike 2.0 Generic" license.

상속: TiledMapServiceLayer, IAttribution, ITileCache
파일 보기 프로젝트 열기: TNOCS/csTouch

공개 프로퍼티들

프로퍼티 타입 설명
TileCacheFolder string

공개 메소드들

메소드 설명
GetTileUrl ( int level, int row, int col ) : string

Returns a url to the specified tile

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.

ReadFully ( Stream stream ) : byte[]
WebTileLayer2 ( ) : System

Initializes a new instance of the OpenStreetMapLayer class.

보호된 메소드들

메소드 설명
GetTileSource ( int level, int row, int col, Action onComplete ) : void

비공개 메소드들

메소드 설명
BindImage ( BitmapImage image, byte img, Action onComplete ) : void
CreateAttributionTemplate ( ) : void
GetTileSourceInternal ( int level, int row, int col, Action onComplete, bool internalCall ) : void
OnStylePropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
StopProcessing ( object sender, System.Windows.ExitEventArgs e ) : void

메소드 상세

GetTileSource() 보호된 메소드

protected GetTileSource ( int level, int row, int col, Action onComplete ) : void
level int
row int
col int
onComplete Action
리턴 void

GetTileUrl() 공개 메소드

Returns a url to the specified tile
public GetTileUrl ( int level, int row, int col ) : string
level int Layer level
row int Tile row
col int Tile column
리턴 string

Initialize() 공개 메소드

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
리턴 void

ReadFully() 공개 메소드

public ReadFully ( Stream stream ) : byte[]
stream Stream
리턴 byte[]

WebTileLayer2() 공개 메소드

Initializes a new instance of the OpenStreetMapLayer class.
public WebTileLayer2 ( ) : System
리턴 System

프로퍼티 상세

TileCacheFolder 공개적으로 프로퍼티

public string TileCacheFolder
리턴 string