ClassOpenStreetMapProvider
Represents the Open Street Map Provider class.
Definition
Namespace:Telerik.Windows.Controls.Map
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
public class OpenStreetMapProvider : TiledProvider, IDisposable, ICloneable
Inheritance: objectMapProviderBaseTiledProviderOpenStreetMapProvider
Implements:
Inherited Members
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.
Fields
LayerProperty
Identifies the Layer dependency property.
Declaration
public static readonly DependencyProperty LayerProperty
Field Value
DependencyProperty
StandardModeUserAgentProperty
Identifies the StandardModeUserAgent dependency property.
Declaration
public static readonly DependencyProperty StandardModeUserAgentProperty
Field Value
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/.
Layer
Gets or sets map layer.
Declaration
public OpenStreetMapLayer Layer { get; set; }
Property Value
SpatialReference
Returns the SpatialReference for the map provider.
Declaration
public override ISpatialReference SpatialReference { get; }
Property Value
Overrides
StandardModeUserAgent
Gets or sets the User-Agent string used when requesting image tiles in Standard OpenStreetMapLayer.
Declaration
public string StandardModeUserAgent { get; set; }
Property Value
Methods
Clone()
Implements the ICloneable interface.
OnPreviewSourceChanged(IMapSource)
Called after map provider switch to another map source.
Declaration
protected override void OnPreviewSourceChanged(IMapSource source)
Parameters
source
Map source is used.
Overrides