Class OsmTileMapSource
Open street base map source.
Inherited Members
Namespace: Telerik.Windows.Controls.Map
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public class OsmTileMapSource : TiledMapSource, IMapSource
Constructors
OsmTileMapSource(String)
Initializes a new instance of the OsmTileMapSource class.
Declaration
protected OsmTileMapSource(string tileUrlFormat)
Parameters
System. Format string for the tile renderer. |
OsmTileMapSource(String, String)
Initializes a new instance of the OsmTileMapSource class with API key.
Declaration
protected OsmTileMapSource(string tileUrlFormat, string key)
Parameters
System. Format string for the tile renderer. |
System. The API key for Cycle/Transport maps. |
OsmTileMapSource(String, String[], Int32)
Initializes a new instance of the OsmTileMapSource class.
Declaration
protected OsmTileMapSource(string tileUrlFormat, string[] tilePathPrefixes, int maxZoomLevel = 18)
Parameters
System. Format string for the tile renderer. |
System. Path prefixes for tile URL. |
System. Optional max zoom level. Default value for OSM is 18. |
Fields
DefaultMaxZoomLevel
Default max zoom level for OpenStreet Maps.
Declaration
public const int DefaultMaxZoomLevel = 18
Field Value
System.
|
Properties
APIKey
The API key needed for Transport and Cycle modes of OpenStreetMap.
Declaration
public string APIKey { get; set; }
Property Value
System.
|
Methods
GetTile(Int32, Int32, Int32)
Gets the image URI.
Declaration
protected override Uri GetTile(int tileLevel, int tilePositionX, int tilePositionY)
Parameters
System. Tile level. |
System. Tile X. |
System. Tile Y. |
Returns
System. URI of image. |
Overrides
Initialize()
Initialize provider.
Declaration
public override void Initialize()
Overrides
IsValidCacheUri(Int32, Int32, Int32, Uri)
Validates loaded uri to tile position. Should be overridden if the provider loads the same tile from different http addresses.
Declaration
protected override bool IsValidCacheUri(int tileLevel, int tilePositionX, int tilePositionY, Uri uri)
Parameters
System. The MSI tile Level. |
System. The number of tiles from the left (0 based) for this tile level. |
System. The number of tiles from the top (0 based) for this tile level. |
System. Uri. |
Returns
System. True if the loaded uri is valid. |