Class BingRestMapProvider
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.RadMap.dll
Syntax
public class BingRestMapProvider : IMapProvider, ICloneable, IMapTileProvider, IMapRouteProvider, IMapTruckRouteProvider, IMapSearchProvider, IMapElevationProvider
Constructors
BingRestMapProvider()
Initializes a new instance of the BingRestMapProvider class.
Declaration
public BingRestMapProvider()
Fields
cacheLoadReference
Declaration
protected Dictionary<string, List<TileInfo>> cacheLoadReference
Field Value
System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.List<TileInfo>>
|
lockObj
Declaration
protected object lockObj
Field Value
System.Object
|
tileMatrix
Declaration
protected Dictionary<string, TileInfo> tileMatrix
Field Value
System.Collections.Generic.Dictionary<System.String, TileInfo>
|
Properties
BingKey
Gets or sets the Bing key.
Declaration
public string BingKey { get; set; }
Property Value
System.String
The bing key. |
CacheProvider
Declaration
public IMapCacheProvider CacheProvider { get; set; }
Property Value
IMapCacheProvider
|
Implements
Culture
Gets or sets the culture.
Declaration
public CultureInfo Culture { get; set; }
Property Value
System.Globalization.CultureInfo
The culture. |
EnableCaching
Declaration
public bool EnableCaching { get; set; }
Property Value
System.Boolean
|
Implements
Id
ImagerySet
Gets or sets the imagery set.
Declaration
public ImagerySet ImagerySet { get; set; }
Property Value
ImagerySet
The imagery set. |
Initialized
Gets or sets a value indicating whether this BingRestMapProvider is initialized.
Declaration
public bool Initialized { get; protected set; }
Property Value
System.Boolean
|
Initializing
Gets or sets a value indicating whether this BingRestMapProvider is currently in the initialization process.
Declaration
public bool Initializing { get; protected set; }
Property Value
System.Boolean
|
MaxZoomLevel
Declaration
public int MaxZoomLevel { get; set; }
Property Value
System.Int32
|
Implements
MinZoomLevel
Declaration
public int MinZoomLevel { get; set; }
Property Value
System.Int32
|
Implements
SessionId
Gets the session identifier.
Declaration
public string SessionId { get; }
Property Value
System.String
The session identifier. |
TileDownloader
Declaration
public IMapTileDownloader TileDownloader { get; set; }
Property Value
IMapTileDownloader
|
Implements
TileSize
Declaration
public Size TileSize { get; }
Property Value
System.Drawing.Size
|
Implements
UseSession
Gets or sets a value indicating whether to use session key.
Declaration
public bool UseSession { get; set; }
Property Value
System.Boolean
|
Methods
BuildElevationRequestUri(ElevationRequest)
Declaration
protected virtual Uri BuildElevationRequestUri(ElevationRequest request)
Parameters
ElevationRequest
request
|
Returns
System.Uri
|
BuildRoutingRequestUri(RouteRequest)
Declaration
protected virtual Uri BuildRoutingRequestUri(RouteRequest request)
Parameters
RouteRequest
request
|
Returns
System.Uri
|
BuildSearchRequestUri(SearchRequest)
Declaration
protected virtual Uri BuildSearchRequestUri(SearchRequest request)
Parameters
SearchRequest
request
|
Returns
System.Uri
|
BuildTruckRouteRequestBody(TruckRouteRequest)
Declaration
protected virtual string BuildTruckRouteRequestBody(TruckRouteRequest request)
Parameters
TruckRouteRequest
request
|
Returns
System.String
|
BuildTruckRouteRequestUri(TruckRouteRequest)
Declaration
protected virtual Uri BuildTruckRouteRequestUri(TruckRouteRequest request)
Parameters
TruckRouteRequest
request
|
Returns
System.Uri
|
CalculateElevationAsync(ElevationRequest)
Declaration
public void CalculateElevationAsync(ElevationRequest request)
Parameters
ElevationRequest
request
|
Implements
CalculateRouteAsync(RouteRequest)
Declaration
public void CalculateRouteAsync(RouteRequest request)
Parameters
RouteRequest
request
|
Implements
CalculateTruckRouteAsync(TruckRouteRequest)
Declaration
public void CalculateTruckRouteAsync(TruckRouteRequest request)
Parameters
TruckRouteRequest
request
|
Implements
Clone()
Declaration
public object Clone()
Returns
System.Object
|
Implements
GetCacheKey(Int32, Int32, Int32)
Gets the key for cache storage.
Declaration
protected virtual string GetCacheKey(int tileX, int tileY, int zoomLevel)
Parameters
System.Int32
tileX
The tile x. |
System.Int32
tileY
The tile y. |
System.Int32
zoomLevel
The zoom level. |
Returns
System.String
System.String. |
GetContent(IMapViewport)
Declaration
public virtual IEnumerable<MapVisualElement> GetContent(IMapViewport viewport)
Parameters
IMapViewport
viewport
|
Returns
System.Collections.Generic.IEnumerable<MapVisualElement>
|
Implements
GetPointsString(List<PointG>)
Declaration
protected virtual string GetPointsString(List<PointG> points)
Parameters
System.Collections.Generic.List<PointG>
points
|
Returns
System.String
|
GetSupportedViews()
Declaration
public virtual List<MapViewInfo> GetSupportedViews()
Returns
System.Collections.Generic.List<MapViewInfo>
|
Implements
GetTile(Int32, Int32, Int32)
Gets the tile uri.
Declaration
public Uri GetTile(int tileMatrixX, int tileMatrixY, int zoomLevel)
Parameters
System.Int32
tileMatrixX
The tile matrix x. |
System.Int32
tileMatrixY
The tile matrix y. |
System.Int32
zoomLevel
The zoom level. |
Returns
System.Uri
Uri. |
GetTileImage(Int32, Int32, Int32)
Declaration
public Image GetTileImage(int tileMatrixX, int tileMatrixY, int zoomLevel)
Parameters
System.Int32
tileMatrixX
|
System.Int32
tileMatrixY
|
System.Int32
zoomLevel
|
Returns
System.Drawing.Image
|
Implements
GetTileInfoImage(TileInfo)
Gets the image of the tile info.
Declaration
protected virtual void GetTileInfoImage(TileInfo tileInfo)
Parameters
TileInfo
tileInfo
The tile information. |
Initialize()
Initializes this provider.
Declaration
public virtual void Initialize()
Implements
Exceptions
System.Exception
|
InitializeImageryMetadataCompleted(Object, DownloadStringCompletedEventArgs)
Called when the imagery metadata initialization is complete.
Declaration
protected virtual void InitializeImageryMetadataCompleted(object sender, DownloadStringCompletedEventArgs e)
Parameters
System.Object
sender
The sender. |
System.Net.DownloadStringCompletedEventArgs
e
The System.Net.DownloadStringCompletedEventArgs instance containing the event data. |
InitializeImageryService()
Initializes the imagery service.
Declaration
protected virtual void InitializeImageryService()
Exceptions
System.Exception
|
InitializeSessionCompleted(Object, DownloadStringCompletedEventArgs)
Initialization of the session is completed.
Declaration
protected virtual void InitializeSessionCompleted(object sender, DownloadStringCompletedEventArgs e)
Parameters
System.Object
sender
The sender. |
System.Net.DownloadStringCompletedEventArgs
e
The System.Net.DownloadStringCompletedEventArgs instance containing the event data. |
OnCalculateElevationCompleted(Object, DownloadStringCompletedEventArgs)
Declaration
protected virtual void OnCalculateElevationCompleted(object sender, DownloadStringCompletedEventArgs e)
Parameters
System.Object
sender
|
System.Net.DownloadStringCompletedEventArgs
e
|
OnCalculateElevationCompleted(ElevationCompletedEventArgs)
Declaration
protected virtual void OnCalculateElevationCompleted(ElevationCompletedEventArgs e)
Parameters
ElevationCompletedEventArgs
e
|
OnCalculateElevationError(CalculateElevationErrorEventArgs)
Declaration
protected virtual void OnCalculateElevationError(CalculateElevationErrorEventArgs e)
Parameters
CalculateElevationErrorEventArgs
e
|
OnCalculateRouteCompleted(Object, DownloadStringCompletedEventArgs)
Declaration
protected virtual void OnCalculateRouteCompleted(object sender, DownloadStringCompletedEventArgs e)
Parameters
System.Object
sender
|
System.Net.DownloadStringCompletedEventArgs
e
|
OnCalculateRouteCompleted(RoutingCompletedEventArgs)
Declaration
protected virtual void OnCalculateRouteCompleted(RoutingCompletedEventArgs e)
Parameters
RoutingCompletedEventArgs
e
|
OnCalculateRouteError(CalculateRouteErrorEventArgs)
Declaration
protected virtual void OnCalculateRouteError(CalculateRouteErrorEventArgs e)
Parameters
CalculateRouteErrorEventArgs
e
|
OnCalculateTruckRouteCompleted(Object, UploadStringCompletedEventArgs)
Declaration
protected virtual void OnCalculateTruckRouteCompleted(object sender, UploadStringCompletedEventArgs e)
Parameters
System.Object
sender
|
System.Net.UploadStringCompletedEventArgs
e
|
OnCalculateTruckRouteCompleted(RoutingCompletedEventArgs)
Declaration
protected virtual void OnCalculateTruckRouteCompleted(RoutingCompletedEventArgs e)
Parameters
RoutingCompletedEventArgs
e
|
OnCalculateTruckRouteError(CalculateRouteErrorEventArgs)
Declaration
protected virtual void OnCalculateTruckRouteError(CalculateRouteErrorEventArgs e)
Parameters
CalculateRouteErrorEventArgs
e
|
OnFileLoadAsyncComplete(String, Byte[])
Called when an async file load is complete.
Declaration
protected virtual void OnFileLoadAsyncComplete(string fileName, byte[] content)
Parameters
System.String
fileName
Name of the file. |
System.Byte[]
content
The content. |
OnInitializationComplete(EventArgs)
Declaration
protected virtual void OnInitializationComplete(EventArgs e)
Parameters
System.EventArgs
e
|
OnInitializationError(InitializationErrorEventArgs)
Declaration
protected virtual void OnInitializationError(InitializationErrorEventArgs e)
Parameters
InitializationErrorEventArgs
e
|
OnProviderUpdated(EventArgs)
Declaration
protected virtual void OnProviderUpdated(EventArgs e)
Parameters
System.EventArgs
e
|
OnSearchCompleted(SearchCompletedEventArgs)
Declaration
protected virtual void OnSearchCompleted(SearchCompletedEventArgs e)
Parameters
SearchCompletedEventArgs
e
|
OnSearchError(SearchErrorEventArgs)
Declaration
protected virtual void OnSearchError(SearchErrorEventArgs e)
Parameters
SearchErrorEventArgs
e
|
OnSearchRequestCompleted(Object, DownloadStringCompletedEventArgs)
Declaration
protected virtual void OnSearchRequestCompleted(object sender, DownloadStringCompletedEventArgs e)
Parameters
System.Object
sender
|
System.Net.DownloadStringCompletedEventArgs
e
|
OnTileDownloadComplete(Object, TileInfoEventArgs)
Called when a tile download is complete.
Declaration
protected virtual void OnTileDownloadComplete(object sender, TileInfoEventArgs e)
Parameters
System.Object
sender
The sender. |
TileInfoEventArgs
e
The TileInfoEventArgs instance containing the event data. |
SearchAsync(SearchRequest)
Declaration
public void SearchAsync(SearchRequest request)
Parameters
SearchRequest
request
|
Implements
SetView(MapViewInfo)
ViewportChanged(IMapViewport, ViewportChangeAction)
Declaration
public void ViewportChanged(IMapViewport viewport, ViewportChangeAction action)
Parameters
IMapViewport
viewport
|
ViewportChangeAction
action
|
Implements
Events
CalculateElevationCompleted
Declaration
public event EventHandler<ElevationCompletedEventArgs> CalculateElevationCompleted
Event Type
System.EventHandler<ElevationCompletedEventArgs>
|
Implements
CalculateElevationError
Declaration
public event EventHandler<CalculateElevationErrorEventArgs> CalculateElevationError
Event Type
System.EventHandler<CalculateElevationErrorEventArgs>
|
Implements
CalculateRouteCompleted
Declaration
public event EventHandler<RoutingCompletedEventArgs> CalculateRouteCompleted
Event Type
System.EventHandler<RoutingCompletedEventArgs>
|
Implements
CalculateRouteError
Declaration
public event EventHandler<CalculateRouteErrorEventArgs> CalculateRouteError
Event Type
System.EventHandler<CalculateRouteErrorEventArgs>
|
Implements
CalculateTruckRouteCompleted
Declaration
public event EventHandler<RoutingCompletedEventArgs> CalculateTruckRouteCompleted
Event Type
System.EventHandler<RoutingCompletedEventArgs>
|
Implements
CalculateTruckRouteError
Declaration
public event EventHandler<CalculateRouteErrorEventArgs> CalculateTruckRouteError
Event Type
System.EventHandler<CalculateRouteErrorEventArgs>
|
Implements
InitializationComplete
Declaration
public event EventHandler InitializationComplete
Event Type
System.EventHandler
|
Implements
InitializationError
Declaration
public event InitializationErrorEventHandler InitializationError
Event Type
InitializationErrorEventHandler
|
Implements
ProviderUpdated
Declaration
public event EventHandler ProviderUpdated
Event Type
System.EventHandler
|
Implements
SearchCompleted
Declaration
public event EventHandler<SearchCompletedEventArgs> SearchCompleted
Event Type
System.EventHandler<SearchCompletedEventArgs>
|
Implements
SearchError
Declaration
public event EventHandler<SearchErrorEventArgs> SearchError
Event Type
System.EventHandler<SearchErrorEventArgs>
|