Dear all,
I'm looking to speed up the display of our map and tried to use overlay.tile cache.
Unfortunatly, this does not speed up the process as the map flashes to white (background color) on each pan/zoom.
Can you help me, this is my code, based on a sample.
private void TestForm_Load(object sender, EventArgs e)
{
winformsMap1.ThreadingMode = MapThreadingMode.Multithreaded;
winformsMap1.MapResizeMode = MapResizeMode.PreserveExtent;
winformsMap1.MapFocusMode = MapFocusMode.ManuallyFocused;
winformsMap1.AdornmentOverlay.ShowLogo = false;
winformsMap1.ZoomLevelSnapping = ZoomLevelSnappingMode.SnapUp;
winformsMap1.MapUnit = GeographyUnit.Meter;
OpenStreetMapOverlay osmOvelerlay = new OpenStreetMapOverlay();
osmOvelerlay.CacheDirectory = @"C:\temp\OpenStreetMapLayerCache1";
winformsMap1.Overlays.Add(osmOvelerlay);
LayerOverlay m_GeosetOverlay = new LayerOverlay();
m_GeosetOverlay.TileCache = new InMemoryBitmapTileCache(); // <=== this is the line which causes the flash
winformsMap1.Overlays.Add(m_GeosetOverlay);
winformsMap1.CurrentExtent = new RectangleShape(-4352400.53526627, 8867834.11959479, 10425951.3896003, -2890780.54967516);
winformsMap1.Refresh();
}