Articles in this section
Category / Section

How to view Bing map using WPF Map control (SfMap)

1 min read

This article explains how to show the external geospatial imagery resources for deep-zoom satellite viewing (Bing Map) in Syncfusion WPF map control as shown in the following image.

 

Bing Map using WPF Map

 

This can be achieved by using the LayerType property in ImageryLayer as shown in the following steps:

 

Step 1: To enable this feature, define Bing as LayerType.

 

Step 2: Provide the bing Map Key to the BingMapKey property and that key has been obtained from this link.

 

Step 3: Provide the desired BingMapStyle from the available three types:

 

  1. Aerial View
  2. Road View and
  3. AerialWithLabel View

 

Please refer the following code reference, for more details.

 

[XAML]

        <syncfusion:SfMap>
            <syncfusion:SfMap.Layers>
                <syncfusion:ImageryLayer LayerType="Bing" BingMapKey="Your Bing Map Key " BingMapStyle="Aerial" />
            </syncfusion:SfMap.Layers>
        </syncfusion:SfMap>

 

[C#]

SfMap syncMap = new SfMap();
ImageryLayer imageryLayer = new ImageryLayer()
{
LayerType = LayerType.Bing,
BingMapKey = "Your Bing Map key",
BingMapStyle = BingMapStyle.Aerial,
};
syncMap.Layers.Add(imageryLayer);
 

 

View the sample in GitHub.

 

See also

 

Interact with shapes on SfMaps

 

To display item on a map

 

To load multiple shape files on SfMaps

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied