|     Documentation    |     Premium Support

Bings Map Offline Display

Hi all
I am new to the community and hopes for the following support

  1. I am using following code to display the Bing maps
    string applicationID = “key”;
    string cacheDirectory = @“D:\Cache”;
    BingMapsLayer worldLayer = new BingMapsLayer(applicationID, ThinkGeo.MapSuite.Layers.BingMapsMapType.Road, cacheDirectory);
    LayerOverlay staticOverlay = new LayerOverlay();
    staticOverlay.Layers.Add(“WorldLayer”, worldLayer);
    staticOverlay.DrawingExceptionMode = DrawingExceptionMode.DrawException;
    winformsMap1.MapUnit = GeographyUnit.Meter;
    winformsMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);
    winformsMap1.CurrentExtent = new RectangleShape(-10000000, 10000000, 10000000, -10000000);

  2. It works and also downloads the tiles in cache directory.

  3. But when I restarts the project without internet connection, then it does not displays the cached map data.

  4. Please guide me, how to display the Binng Maps cached Map without internet connection.