Is there a way to control the canvas on the WinformsMap control (with WorldMapKitWmsDesktopOverlay)?
When I drag my map, it displays a solid blue boarder around the edge until it redraws (see below), when compared to Google Maps you see no solid area on drag, so I am assuming that the tiles being downloaded from Google extend beyond the viewport of the browser window, so that when you drag it's grabbing some sort of cache of tiles immediately.
Can I simulate this in the WinFormsMap Control?
Also, what are the best properties on the WinformsMap Control to speed up display, zoom and refresh?
Sorry for the delay. We can set the map.ThreadingMode to "Multithreaded" and set the WorldMapKitWmsDesktopOverlay.IsBase to true to make the map renders like you wanted. Please see the following sample code for detail.
winformsMap1.MapUnit = GeographyUnit.DecimalDegree; winformsMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);
WorldMapKitWmsDesktopOverlay worldMapKitDesktopOverlay = new WorldMapKitWmsDesktopOverlay(); winformsMap1.Overlays.Add(worldMapKitDesktopOverlay);
// 1, set this overlay to base. worldMapKitDesktopOverlay.IsBase = true;
// 2, set the threading mode to multithread. winformsMap1.ThreadingMode = MapThreadingMode.Multithreaded;
winformsMap1.CurrentExtent = new RectangleShape(-139.2, 92.4, 120.9, -93.2); winformsMap1.Refresh();
If you like this effect, please evaluate our WpfDesktopEdition which is well construct in multi-tile, and more stable in multithread. Also, please try our new product MapSuiteGISEditor here which is built above WpfDesktopEdition; it gives a brief overview of the WpfDesktopEdition.
Setting the .IsBase property to true did not have any effect (I already had ThreadingMode set to .Multithreaded). I still see the blue (blank) map areas when I drag. Any other ideas?