ClassOsmBasedMapProvider
Represents the Open Street Map based class.
Definition
Namespace:Telerik.Windows.Controls.Map
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
public class OsmBasedMapProvider : TiledProvider, IDisposable, ICloneable
Inheritance: objectMapProviderBaseTiledProviderOsmBasedMapProvider
Implements:
Inherited Members
Constructors
OsmBasedMapProvider()
Initializes a new instance of the OsmBasedMapProvider class.
Declaration
public OsmBasedMapProvider()
Fields
MaxSourceZoomLevelProperty
Identifies the MaxSourceZoomLevel dependency property.
Declaration
public static readonly DependencyProperty MaxSourceZoomLevelProperty
Field Value
DependencyProperty
SourceFormatProperty
Identifies the UriFormat dependency property.
Declaration
public static readonly DependencyProperty SourceFormatProperty
Field Value
DependencyProperty
Properties
MaxSourceZoomLevel
Gets or sets the maximum Zoom Level this tile source of SourceFormat supports.
SourceFormat
Gets or sets the source format (template for Url to tiles on the map server).
SpatialReference
Returns the SpatialReference for the map provider.
Declaration
public override ISpatialReference SpatialReference { get; }
Property Value
Overrides
Methods
AddTileSource(string, int)
Added source according to the format like the format which is used for OSM layer in OpenLayers API.
Declaration
public OsmBasedMapSource AddTileSource(string format, int maxZoomLevel = 18)
Parameters
format
The source format like the following:
http://[a,b,c,d].tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png.
maxZoomLevel
Optional max zoom level. Default value for OSM is 18.
Returns
Added instance of OsmBasedMapSource.
Clone()
Implements the ICloneable interface.
SetMapSourceToClone(MapProviderBase, string)
Set specific map source to clone of map provider.
Declaration
public override void SetMapSourceToClone(MapProviderBase clone, string uniqueId)
Parameters
clone
Clone of map provider.
uniqueId
Id of map source.
Overrides