ClassOsmTileMapSource
Open street base map source.
Definition
Namespace:Telerik.Windows.Controls.Map
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
public class OsmTileMapSource : TiledMapSource, IMapSource
Inheritance: objectMultiScaleTileSourceTiledMapSourceOsmTileMapSource
Derived Classes:
Implements:
Inherited Members
Constructors
OsmTileMapSource(string)
Initializes a new instance of the OsmTileMapSource class.
Declaration
[SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings", MessageId = "0#")]
protected OsmTileMapSource(string tileUrlFormat)
Parameters
tileUrlFormat
Format string for the tile renderer.
OsmTileMapSource(string, string)
Initializes a new instance of the OsmTileMapSource class with API key.
OsmTileMapSource(string, string[], int)
Initializes a new instance of the OsmTileMapSource class.
Declaration
[SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings", MessageId = "0#")]
protected OsmTileMapSource(string tileUrlFormat, string[] tilePathPrefixes, int maxZoomLevel = 18)
Parameters
tileUrlFormat
Format string for the tile renderer.
tilePathPrefixes
string[]
Path prefixes for tile URL.
maxZoomLevel
Optional max zoom level. Default value for OSM is 18.
Fields
DefaultMaxZoomLevel
Default max zoom level for OpenStreet Maps.
Properties
Methods
GetTile(int, int, int)
Gets the image URI.
Initialize()
Initialize provider.
Declaration
public override void Initialize()
Overrides
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 override 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.
Overrides