ThinkGeo.com    |     Documentation    |     Premium Support

GoogleMapOverlay

 Do you guys have an example app showing how to use the GoogleMapOverlay for the Desktop Edition 4.5?  I thought Ii saw one once, but I can't seem to find it again...


Dave



David,


 


Here it is:


 


            GoogleMapsOverlay googleOverlay = new GoogleMapsOverlay();


            winformsMap1.Overlays.Add(googleOverlay);


 


            winformsMap1.MapUnit = GeographyUnit.Meter;


            winformsMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);


            winformsMap1.CurrentExtent = new RectangleShape(-10000000, 10000000, 10000000, -10000000);


 


            winformsMap1.Refresh();


 


Thanks,


 


James