We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Platform: WPF |
Control: SfMaps |
Published Date: October 22, 2019 |
Last Revised Date: July 21, 2020

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

2X faster development

The ultimate WPF UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile