I am display the ThinkGeo online street map, and want to have a min map. I think I am following the examples, but the mini map container is displayed but no map in it.
Any help
Thanks Jim
private void DisplayOnlineMap(string LayerName, WorldMapKitMapType MapType)
{
try
{
winformsMap1.Overlays.Clear();
winformsMap1.MapUnit = GeographyUnit.DecimalDegree;
winformsMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);
WorldMapKitWmsDesktopOverlay worldMapKitDesktopOverlay = new WorldMapKitWmsDesktopOverlay();
worldMapKitDesktopOverlay.Name = LayerName;
worldMapKitDesktopOverlay.WebProxy = new WebProxy(WebProxyURL, true);
winformsMap1.Overlays.Add(LayerName, worldMapKitDesktopOverlay);
worldMapKitDesktopOverlay.MapType = MapType;
winformsMap1.CurrentExtent = GetCurrentMapExtent();
MiniMapAdornmentLayer miniMapLayer = new MiniMapAdornmentLayer();
miniMapLayer.Location = AdornmentLocation.LowerLeft;
miniMapLayer.Layers.Add(new BackgroundLayer(winformsMap1.BackgroundOverlay.BackgroundBrush));
winformsMap1.AdornmentOverlay.Layers.Add(miniMapLayer);
winformsMap1.Refresh();
}
catch (Exception ex)
{
string er = ex.Message;
}
}