Class
AzureMapProvider

Tiles provider for displaying vector and raster data from Azure Maps online services.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
public class AzureMapProvider : VectorTileMapProvider, IDisposable, ICloneable

Inheritance: objectMapProviderBaseTiledProviderVectorTileMapProviderAzureMapProvider

Implements: ICloneableIDisposable

Inherited Members VectorTileMapProvider.StyleFileSourcePropertyVectorTileMapProvider.OnNoStyleVectorTileRendering(object, NoStyleVectorTileRenderingEventArgs)VectorTileMapProvider.TransferStylesToMapSources()VectorTileMapProvider.StyleFileSourceVectorTileMapProvider.IgnoreStyleVectorTileMapProvider.NoStyleVectorTileRenderingTiledProvider.IsTileCachingEnabledPropertyTiledProvider.CacheStoragePropertyTiledProvider.RequestCacheLevelPropertyTiledProvider.RequestCredentialsPropertyTiledProvider.IsTileCachingEnabledChanged(bool, bool)TiledProvider.CacheStorageChanged()TiledProvider.RequestCacheLevelChanged()TiledProvider.RequestCredentialsChanged()TiledProvider.InheritParameters(MapProviderBase)TiledProvider.InheritCacheStorage(TiledMapSource)TiledProvider.OnIsTileCachingEnabledChanged(bool, bool)TiledProvider.InheritRequestCacheLevel(TiledMapSource)TiledProvider.InheritRequestCredentials(TiledMapSource)TiledProvider.IsTileCachingEnabledTiledProvider.CacheStorageTiledProvider.RequestCacheLevelTiledProvider.RequestCredentialsMapProviderBase.GeoBoundsPropertyMapProviderBase.GeoBoundsNWPropertyMapProviderBase.GeoBoundsSEPropertyMapProviderBase.OpacityPropertyMapProviderBase.Dispose()MapProviderBase.GetValidatedGeoPoint(Location)MapProviderBase.SetMapSourceToClone(MapProviderBase, string)MapProviderBase.SetMapSource(string)MapProviderBase.TryGetMapSource(string, out IMapSource)MapProviderBase.ApplySourceModes(string)MapProviderBase.Dispose(bool)MapProviderBase.CreateInstanceCore()MapProviderBase.OnPreviewSourceChange(IMapSource)MapProviderBase.InheritCurrentSource(MapProviderBase)MapProviderBase.RegisterSetSourceCommand(Type, string, DataTemplate, Uri, CanExecuteRoutedEventHandler, ExecutedRoutedEventHandler)MapProviderBase.SourceInitializationFaulted(object, InitializationFaultEventArgs)MapProviderBase.TilePresenterMapSourceChanged(object, SourceChangedEventArgs)MapProviderBase.CommandBindingCollectionMapProviderBase.CommandsMapProviderBase.GeoBoundsMapProviderBase.GeoBoundsNWMapProviderBase.GeoBoundsSEMapProviderBase.OpacityMapProviderBase.SupportedSourcesMapProviderBase.MapSourcesMapProviderBase.InitializationFaultedMapProviderBase.MapSourceChangedMapProviderBase.SpatialReferenceChanged

Constructors

AzureMapProvider()

Initializes a new instance of the AzureMapProvider class.

Declaration

cs-api-definition
public AzureMapProvider()

AzureMapProvider(string, AzureTileSet)

Initializes a new instance of the AzureMapProvider class with specific subscription key and initial azure tile set.

Declaration

cs-api-definition
public AzureMapProvider(string subscriptionKey, AzureTileSet tileSet)

Parameters

subscriptionKey

string

tileSet

AzureTileSet

Fields

APIVersionProperty

Identifies the APIVersion dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty APIVersionProperty

Field Value

DependencyProperty

LanguageProperty

Identifies the Language dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty LanguageProperty

Field Value

DependencyProperty

TileSetProperty

Identifies the TileSet dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty TileSetProperty

Field Value

DependencyProperty

Properties

APIVersion

Gets or sets the Azure Maps 'Render' Rest API version. For more information check https://docs.microsoft.com/en-us/rest/api/maps/.

Declaration

cs-api-definition
public string APIVersion { get; set; }

Property Value

string

Language

Gets or sets the language of the AzureMapProvider. For list of all supported languages check https://learn.microsoft.com/en-us/azure/azure-maps/supported-languages.

Declaration

cs-api-definition
public CultureInfo Language { get; set; }

Property Value

CultureInfo

SpatialReference

Returns the SpatialReference for the map provider.

Declaration

cs-api-definition
public override ISpatialReference SpatialReference { get; }

Property Value

ISpatialReference

Overrides VectorTileMapProvider.SpatialReference

SubscriptionKey

Gets or sets the subscription key of the user's Azure account. Check https://learn.microsoft.com/en-gb/azure/azure-maps/how-to-manage-authentication#view-authentication-details/ for information on how to obtain subscription key.

Declaration

cs-api-definition
public string SubscriptionKey { get; set; }

Property Value

string

TileSet

Gets or sets the Azure Maps tile set.

Declaration

cs-api-definition
public AzureTileSet TileSet { get; set; }

Property Value

AzureTileSet

UserAccessibleModes

Gets or sets a list of user accessible Azure maps tile sets (via change mode buttons).

Declaration

cs-api-definition
public ObservableCollection<AzureTileSet> UserAccessibleModes { get; }

Property Value

ObservableCollection<AzureTileSet>

Methods

Clone()

Implements the ICloneable interface.

Declaration

cs-api-definition
public object Clone()

Returns

object

Cloned object.

Implements ICloneable.Clone()

OnPreviewSourceChanged(IMapSource)

Called after map provider switch to another map source.

Declaration

cs-api-definition
protected override void OnPreviewSourceChanged(IMapSource source)

Parameters

source

IMapSource

Map source is used.

Overrides MapProviderBase.OnPreviewSourceChanged(IMapSource)

OnRegisterChangeModeCommand(AzureTileSet)

Called when a new tile set (mode) change command is about to be registered.

Declaration

cs-api-definition
protected void OnRegisterChangeModeCommand(AzureTileSet tileSet)

Parameters

tileSet

AzureTileSet

The new tile set.

SetCommandState(string)

Set state of the commands depends on the new map source.

Declaration

cs-api-definition
protected override void SetCommandState(string uniqueId)

Parameters

uniqueId

string

Map source unique ID.

Overrides MapProviderBase.SetCommandState(string)