BingMapDataProvider.Kind Property
Gets or sets a value specifying the type of images to be displayed on a map.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v19.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
BingMapKind | **Hybrid** | A BingMapKind enumeration value. |
Available values:
Name | Description |
---|---|
Road | The map shows road schemas. |
Area | The map shows photo images of the Earth’s surface. |
Hybrid | The map shows a combination of Earth images and road schemas. |
Example
This example demonstrates how to connect to the Bing Maps using the BingMapDataProvider object.
Note that if you run this sample as is, you will get a warning message saying that the specified Bing Maps key is invalid. To learn more about Bing Map keys, please refer to the How to: Get a Bing Maps Key tutorial.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-load-image-tiles-from-the-bing-maps-service-t184846
mapControl1.Layers.Add(new ImageLayer() {
DataProvider = new BingMapDataProvider() {
BingKey = "YOUR BING KEY"
}
});