Skip to content

This article explains how to show google map in WPF SfMap

Notifications You must be signed in to change notification settings

SyncfusionExamples/How-to-show-google-map-in-WPF-SfMap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

How-to-show-google-map-in-WPF-SfMap

This article explains how to use google maps API to show that in Syncfusion WPF Maps control as shown in below.

Display the Google Maps

You can show the Google Maps by overriding the Imagery layer as given in the below code snippet.

[XAML]


          <sync:SfMap>
            <sync:SfMap.Layers>
                <local:ImageryLayerExt>
                </local:ImageryLayerExt>
            </sync:SfMap.Layers>
        </sync:SfMap>

[C#]

    public class ImageryLayerExt : ImageryLayer
    {
        protected override string GetUri(int X, int Y, int Scale)
        {
            var link = "http://mt1.google.com/vt/lyrs=y&x=" + X.ToString() + "&y=" + Y.ToString() + "&z=" + Scale.ToString();
            return link;
        }
    } 

KB article - How-to-show-google-map-in-WPF-SfMap

See also

How to view bing map using WPF SfMap

How to open street map in WPF SfMap

How to add a multiple layers in OSM map

How to show the markers in WPF SfMap

About

This article explains how to show google map in WPF SfMap

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages