Class OpenStreetMapProvider
Represents the Open Street Map Provider class.
Inherited Members
Namespace: Telerik.Windows.Controls.Map
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public class OpenStreetMapProvider : TiledProvider, IDisposable, ICloneable
Constructors
OpenStreetMapProvider()
Initializes a new instance of the OpenStreetMapProvider class.
Declaration
public OpenStreetMapProvider()
OpenStreetMapProvider(String)
Initializes a new instance of the OpenStreetMapProvider class with API key used for Cycle and Transport maps.
Declaration
public OpenStreetMapProvider(string key)
Parameters
System.String
key
|
Fields
LayerProperty
Identifies the Layer dependency property.
Declaration
public static readonly DependencyProperty LayerProperty
Field Value
System.Windows.DependencyProperty
|
Properties
APIKey
Gets or sets OpenStreetMaps API key needed for Transport and Cycle modes. These maps are loaded from https://www.thunderforest.com/ servers. Key can be obtained from https://www.thunderforest.com/docs/apikeys/.
Declaration
public string APIKey { get; set; }
Property Value
System.String
|
Layer
Gets or sets map layer.
Declaration
public OpenStreetMapLayer Layer { get; set; }
Property Value
OpenStreetMapLayer
|
SpatialReference
Returns the SpatialReference for the map provider.
Declaration
public override ISpatialReference SpatialReference { get; }
Property Value
ISpatialReference
|
Overrides
Methods
Clone()
Implements the ICloneable interface.
Declaration
public object Clone()
Returns
System.Object
Cloned object. |
Implements
OnPreviewSourceChanged(IMapSource)
Called after map provider switch to another map source.
Declaration
protected override void OnPreviewSourceChanged(IMapSource source)
Parameters
IMapSource
source
Map source is used. |