TiledMapSource
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
Fields
OpacityProperty
DependencyProperty
Identifies the Opacity Opacity dependency property.
public static readonly DependencyProperty OpacityProperty
Properties
Gets or sets the CacheStorage property.
public ICacheStorage CacheStorage { get; set; }
Implements:
Gets or sets culture.
public CultureInfo Culture { get; set; }
Implements:
Gets or sets the IsTileCachingEnabled property.
public bool IsTileCachingEnabled { get; set; }
Implements:
Gets maximum zoom level.
protected int MaxZoomLevel { get; }
Gets minimal zoom level.
protected int MinZoomLevel { get; }
Methods
The MultiScaleImage control calls this method to possible caching tiles by provider.
public override void CacheTile(int tileLevel, int tilePositionX, int tilePositionY, Uri uri, DateTime expires, byte[] tileBody)
The MSI tile Level.
tilePositionXintThe number of tiles from the left (0 based) for this tile level.
tilePositionYintThe number of tiles from the top (0 based) for this tile level.
uriUriUri.
expiresDateTimeDateTime of expires.
tileBodybyte[]Tile body.
Overrides:
Requests the cached tile.
protected override void GetCachedTileAsync(int tileLevel, int tilePositionX, int tilePositionY, Action<byte[]> callback)
Level of the tile.
tilePositionXintX-matrix coordinate of the tile.
tilePositionYintY-matrix coordinate of the tile.
callbackAction<byte[]>Callback which should be called to return tile if it is available or null.
Overrides:
The MultiScaleImage control calls this method to get the URI's for the base layer and all Overlays.
protected override void GetTileLayers(int tileLevel, int tilePositionX, int tilePositionY, IList<object> tileImageLayerSources)
The MSI tile Level.
tilePositionXintThe number of tiles from the left (zero based) for this tile level.
tilePositionYintThe number of tiles from the top (zero based) for this tile level.
tileImageLayerSourcesIList<object>A reference to the object to add the layer and Overlay's URI's too.
Overrides:
Initialize map source.
public virtual void Initialize()
Implements:
Invalidate tiles which have not been loaded yet.
protected void InvalidateNullTiles()
Validates loaded uri to tile position. Should be overridden if the provider loads the same tile from different http addresses.
protected virtual bool IsValidCacheUri(int tileLevel, int tilePositionX, int tilePositionY, Uri uri)
The MSI tile Level.
tilePositionXintThe number of tiles from the left (0 based) for this tile level.
tilePositionYintThe number of tiles from the top (0 based) for this tile level.
uriUriUri.
Returns:True if the loaded uri is valid.
Raise InitializeCompleted event.
protected void RaiseInitializeCompleted()
Events
Occurs when initialization of the map source is faulted.
public event EventHandler<InitializationFaultEventArgs> InitializationFaulted
Occurs when initialization of the map source is completed.
public event EventHandler InitializeCompleted
Implements: