In the World Map Kit Online Demo example ( thinkgeo.com/demos/ ) it shows switching from Street Map, Hybrid Map and Aerial Map running in a
web browsers. How can I do the same thing in the WinForms application. The following code displays the Street Map, but I am not sure how to display the
other two Maps. Thanks for your help, I am new to ThinkGeo.
Jim
winformsMap1.MapUnit = GeographyUnit.DecimalDegree;
winformsMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);
WorldMapKitWmsDesktopOverlay worldMapKitDesktopOverlay = new WorldMapKitWmsDesktopOverlay();
worldMapKitDesktopOverlay.WebProxy = new WebProxy(“proxy1.global:8080/”, true);
winformsMap1.Overlays.Add(worldMapKitDesktopOverlay);
winformsMap1.CurrentExtent = new RectangleShape(-139.2, 92.4, 120.9, -93.2);
winformsMap1.Refresh();
Displaying Street Map, Hybrid Map and Aerial Map in Winforms app
Hi James,
Please try to set MapType of it.
worldMapKitDesktopOverlay.MapType
= WorldMapKitMapType.Road;
= WorldMapKitMapType.AerialWithLabels;
= WorldMapKitMapType.Aerial;
Regards,
Don
Thanks Don, that works
James,
Great to hear it works. Don’t hesitate to let us know if any other questions.
Thanks,
Troy