Back to Devexpress

MapboxDataProvider.AccessToken Property

wpf-devexpress-dot-xpf-dot-map-dot-mapboxdataprovider-c5053053.md

latest1.5 KB
Original Source

MapboxDataProvider.AccessToken Property

Gets or sets the Mapbox service’s access token.

Namespace : DevExpress.Xpf.Map

Assembly : DevExpress.Xpf.Map.v25.2.dll

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public string AccessToken { get; set; }
vb
Public Property AccessToken As String

Property Value

TypeDescription
String

A string that represents the access token.

|

Remarks

Use the AccessToken property to specify a Mapbox Service’s access token. See the access token page for more information on how to obtain the token.

Example

The following example shows how to use a MapboxDataProvider object to connect to the Mapbox Service.

xaml
<dxm:MapControl>
    <dxm:ImageLayer>
        <dxm:MapboxDataProvider AccessToken="Your_Access_Token" />
    </dxm:ImageLayer>
</dxm:MapControl>

See Also

MapboxDataProvider Class

MapboxDataProvider Members

DevExpress.Xpf.Map Namespace