ClassTiledMapSource
Map source which provides tiles for the MultiScaleImage.
Definition
Namespace:Telerik.Windows.Controls.Map
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
public class TiledMapSource : MultiScaleTileSource, IMapSource
Inheritance: objectMultiScaleTileSourceTiledMapSource
Derived Classes:
Implements:
Inherited Members
Constructors
TiledMapSource(int, int, int, int)
Initializes a new instance of the TiledMapSource class.
Declaration
[SuppressMessage("Microsoft.Usage", "CA2233:OperationsShouldNotOverflow", MessageId = "maxZoomLevel+1")]
protected TiledMapSource(int minZoomLevel, int maxZoomLevel, int tileWidth, int tileHeight)
Parameters
minZoomLevel
Min zoom level.
maxZoomLevel
Max zoom level.
tileWidth
Width of the tile.
tileHeight
Height of the tile.
Fields
OpacityProperty
Identifies the Opacity Opacity dependency property.
Declaration
public static readonly DependencyProperty OpacityProperty
Field Value
DependencyProperty
Properties
CacheStorage
Gets or sets the CacheStorage property.
Declaration
public ICacheStorage CacheStorage { get; set; }
Property Value
Implements
Culture
Gets or sets culture.
Declaration
public CultureInfo Culture { get; set; }
Property Value
Implements
IsTileCachingEnabled
Gets or sets the IsTileCachingEnabled property.
Declaration
public bool IsTileCachingEnabled { get; set; }
Property Value
Implements
MaxZoomLevel
Gets maximum zoom level.
MinZoomLevel
Gets minimal zoom level.
Opacity
Gets or sets the opacity factor.
Methods
CacheTile(int, int, int, Uri, DateTime, byte[])
The MultiScaleImage control calls this method to possible caching tiles by provider.
Declaration
public override void CacheTile(int tileLevel, int tilePositionX, int tilePositionY, Uri uri, DateTime expires, byte[] tileBody)
Parameters
tileLevel
The MSI tile Level.
tilePositionX
The number of tiles from the left (0 based) for this tile level.
tilePositionY
The number of tiles from the top (0 based) for this tile level.
uri
Uri
Uri.
expires
DateTime of expires.
tileBody
byte[]
Tile body.
Overrides
ConvertTileToZoomLevel(int)
Converts a tile level to a zoom level.
ConvertZoomToTileLevel(int)
Converts a zoom level to a tile level.
GetCachedTile(int, int, int)
Gets the image URI.
GetCachedTileAsync(int, int, int, Action<byte[]>)
Requests the cached tile.
Declaration
protected override void GetCachedTileAsync(int tileLevel, int tilePositionX, int tilePositionY, Action<byte[]> callback)
Parameters
tileLevel
Level of the tile.
tilePositionX
X-matrix coordinate of the tile.
tilePositionY
Y-matrix coordinate of the tile.
callback
Callback which should be called to return tile if it is available or null.
Overrides
GetCachedTileName(int, int, int)
Generates cache tile name.
GetTile(int, int, int)
Gets the image URI.
GetTileLayers(int, int, int, IList<object>)
The MultiScaleImage control calls this method to get the URI's for the base layer and all Overlays.
Declaration
protected override void GetTileLayers(int tileLevel, int tilePositionX, int tilePositionY, IList<object> tileImageLayerSources)
Parameters
tileLevel
The MSI tile Level.
tilePositionX
The number of tiles from the left (zero based) for this tile level.
tilePositionY
The number of tiles from the top (zero based) for this tile level.
tileImageLayerSources
A reference to the object to add the layer and Overlay's URI's too.
Overrides
Initialize()
Initialize map source.
Declaration
public virtual void Initialize()
Implements
InvalidateNullTiles()
Invalidate tiles which have not been loaded yet.
Declaration
protected void InvalidateNullTiles()
IsLevelSupported(int)
Indicates whether specified tile level is supported.
IsValidCacheUri(int, int, int, Uri)
Validates loaded uri to tile position. Should be overridden if the provider loads the same tile from different http addresses.
Declaration
protected virtual bool IsValidCacheUri(int tileLevel, int tilePositionX, int tilePositionY, Uri uri)
Parameters
tileLevel
The MSI tile Level.
tilePositionX
The number of tiles from the left (0 based) for this tile level.
tilePositionY
The number of tiles from the top (0 based) for this tile level.
uri
Uri
Uri.
Returns
True if the loaded uri is valid.
IsValidTileLevel(int)
Does the supplied tile Level fall within the range of valid levels.
RaiseInitializationFaulted(string, Exception)
Raise InitializeCompleted event.
RaiseInitializeCompleted()
Raise InitializeCompleted event.
Declaration
protected void RaiseInitializeCompleted()
Events
InitializationFaulted
Occurs when initialization of the map source is faulted.
Declaration
public event EventHandler<InitializationFaultEventArgs> InitializationFaulted
Event Value
InitializeCompleted
Occurs when initialization of the map source is completed.
Declaration
public event EventHandler InitializeCompleted
Event Value
Implements