Hi all
I am new to the community and hopes for the following support
-
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.Overlays.Add(staticOverlay);
winformsMap1.MapUnit = GeographyUnit.Meter;
winformsMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);
winformsMap1.CurrentExtent = new RectangleShape(-10000000, 10000000, 10000000, -10000000);
winformsMap1.Refresh(); -
It works and also downloads the tiles in cache directory.
-
But when I restarts the project without internet connection, then it does not displays the cached map data.
-
Please guide me, how to display the Binng Maps cached Map without internet connection.
Regards
Nasir