OsmBasedMapProvider
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
Initializes a new instance of the OsmBasedMapProvider class.
public OsmBasedMapProvider()
Fields
MaxSourceZoomLevelProperty
DependencyProperty
Identifies the MaxSourceZoomLevel dependency property.
public static readonly DependencyProperty MaxSourceZoomLevelProperty
SourceFormatProperty
DependencyProperty
Identifies the UriFormat dependency property.
public static readonly DependencyProperty SourceFormatProperty
Properties
Gets or sets the maximum Zoom Level this tile source of SourceFormat supports.
public int MaxSourceZoomLevel { get; set; }
Gets or sets the source format (template for Url to tiles on the map server).
public string SourceFormat { get; set; }
Returns the SpatialReference for the map provider.
public override ISpatialReference SpatialReference { get; }
Overrides:
Methods
Added source according to the format like the format which is used for OSM layer in OpenLayers API.
public OsmBasedMapSource AddTileSource(string format, int maxZoomLevel = 18)
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.
Implements the ICloneable interface.
Set specific map source to clone of map provider.
public override void SetMapSourceToClone(MapProviderBase clone, string uniqueId)
Clone of map provider.
uniqueIdstringId of map source.
Overrides: