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.String
tileUrlFormat
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.String
tileUrlFormat
Format string for the tile renderer. |
System.String
key
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.String
tileUrlFormat
Format string for the tile renderer. |
System.String[]
tilePathPrefixes
Path prefixes for tile URL. |
System.Int32
maxZoomLevel
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.Int32
|
Properties
APIKey
The API key needed for Transport and Cycle modes of OpenStreetMap.
Declaration
public string APIKey { get; set; }
Property Value
System.String
|
Methods
GetTile(Int32, Int32, Int32)
Gets the image URI.
Declaration
protected override 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. |
Overrides
Initialize()
Initialize provider.
Declaration
public override void Initialize()