Google Map

Sep 10, 2013 at 7:03 AM
Good Morning
DotSpatial is perfect. But I have one quiestion.

How can I add Google Map as layer to my project in VSC#?

Try to look for tutorial, but can't find.
Sep 12, 2013 at 12:45 PM
Hi

You can use the DotSpatial.Controls.BruTileLayer from FObermaier.

Please look at this link:
http://dotspatial.codeplex.com/discussions/403644
Sep 23, 2013 at 12:12 PM
Edited Sep 23, 2013 at 1:14 PM
Can someone show me how to use BrutileLayer?

I use it as mapcontrol.Layers.Add(BruTileLayer.CreateGoogleMapLayer());
But it doesn't show google map.
Sep 23, 2013 at 3:50 PM
Try this
            //add the map from web
            //BruTileLayer bruTileLayer = BruTileLayer.CreateGoogleSatelliteLayer();//"Google Satellite" ->error server !!!!!!
            this.map.MapFrame.SuspendEvents();           
            BruTileLayer bruTileLayer = BruTileLayer.CreateBingAerialLayer();
            this.map.Layers.Add(bruTileLayer);
            this.map.MapFrame.ResumeEvents();
            this.map.ZoomToMaxExtent();
Sep 26, 2013 at 6:47 AM
Thanks Sannavtar, but it doesn't work. Can you send me current release of brutilelayer?

I think I use wrong version of BrutileLayer.
Sep 26, 2013 at 7:39 AM
Oct 3, 2013 at 5:38 AM
Yes. It works. Thanks you very much.
mapcontrol.Projection = KnownCoordinateSystems.Projected.World.WebMercator;
mapcontrol.Layers.Add(BruTileLayer.CreateGoogleMapLayer());