Class TiledMapSource
Map source which provides tiles for the MultiScaleImage.
Inheritance
Namespace: Telerik.Windows.Controls.Map
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public class TiledMapSource : MultiScaleTileSource, IMapSource
Constructors
TiledMapSource(Int32, Int32, Int32, Int32)
Initializes a new instance of the TiledMapSource class.
Declaration
protected TiledMapSource(int minZoomLevel, int maxZoomLevel, int tileWidth, int tileHeight)
Parameters
System.Int32
minZoomLevel
Min zoom level. |
System.Int32
maxZoomLevel
Max zoom level. |
System.Int32
tileWidth
Width of the tile. |
System.Int32
tileHeight
Height of the tile. |
Fields
OpacityProperty
Identifies the Opacity Opacity dependency property.
Declaration
public static readonly DependencyProperty OpacityProperty
Field Value
System.Windows.DependencyProperty
|
Properties
Culture
Gets or sets culture.
Declaration
public CultureInfo Culture { get; set; }
Property Value
System.Globalization.CultureInfo
|
Implements
MaxZoomLevel
Gets maximum zoom level.
Declaration
protected int MaxZoomLevel { get; }
Property Value
System.Int32
|
MinZoomLevel
Gets minimal zoom level.
Declaration
protected int MinZoomLevel { get; }
Property Value
System.Int32
|
Opacity
Gets or sets the opacity factor.
Declaration
public double Opacity { get; set; }
Property Value
System.Double
|
Implements
UniqueId
Gets unique identifier of the map source.
Declaration
public string UniqueId { get; protected set; }
Property Value
System.String
|
Implements
Methods
ConvertTileToZoomLevel(Int32)
Converts a tile level to a zoom level.
Declaration
protected virtual int ConvertTileToZoomLevel(int tileLevelDetail)
Parameters
System.Int32
tileLevelDetail
The tile level (2^n = pixel width). |
Returns
System.Int32
The zoom level. |
ConvertZoomToTileLevel(Int32)
Converts a zoom level to a tile level.
Declaration
protected virtual int ConvertZoomToTileLevel(int zoomLevel)
Parameters
System.Int32
zoomLevel
The zoom level. |
Returns
System.Int32
The tile level. |
GetTile(Int32, Int32, Int32)
Gets the image URI.
Declaration
protected virtual Uri GetTile(int tileLevel, int tilePositionX, int tilePositionY)
Parameters
System.Int32
tileLevel
Tile level. |
System.Int32
tilePositionX
Tile X. |
System.Int32
tilePositionY
Tile Y. |
Returns
System.Uri
URI of image. |
GetTileLayers(Int32, Int32, Int32, 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
System.Int32
tileLevel
The MSI tile Level. |
System.Int32
tilePositionX
The number of tiles from the left (zero based) for this tile level. |
System.Int32
tilePositionY
The number of tiles from the top (zero based) for this tile level. |
System.Collections.Generic.IList<System.Object>
tileImageLayerSources
A reference to the object to add the layer and Overlay's URI's too. |
Initialize()
Initialize map source.
Declaration
public virtual void Initialize()
Implements
InvalidateNullTiles()
Invalidate tiles which have not been loaded yet.
Declaration
protected void InvalidateNullTiles()
IsLevelSupported(Int32)
Indicates whether specified tile level is supported.
Declaration
public virtual bool IsLevelSupported(int level)
Parameters
System.Int32
level
Tile level. |
Returns
System.Boolean
true if tile level is supported. false otherwise. |
Implements
IsValidTileLevel(Int32)
Does the supplied tile Level fall within the range of valid levels.
Declaration
protected virtual bool IsValidTileLevel(int tileLevel)
Parameters
System.Int32
tileLevel
The proposed level. |
Returns
System.Boolean
True if it is valid else false. |
RaiseInitializationFaulted(String, Exception)
Raise InitializeCompleted event.
Declaration
protected void RaiseInitializationFaulted(string uniqueId, Exception error)
Parameters
System.String
uniqueId
Unique identifier of the map source. |
System.Exception
error
Initialization error. |
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 Type
System.EventHandler<InitializationFaultEventArgs>
|
InitializeCompleted
Occurs when initialization of the map source is completed.
Declaration
public event EventHandler InitializeCompleted
Event Type
System.EventHandler
|