Hi every one
1, I am using GoogleMapsLayer to display google maps. It works fine during online mode. It also caches the tiles in the local drive during online mode.
2. In the offline mode when there is on internet this also works fine and displays the pre-cached tiles. But when it moves to the area that is not visited before or to the area that has no pre-cached tiles in the local drive then it gives the following error and application terimnates
The remote name could not be resolved: 'maps.googleapis.com'
3. Please tell me that how can I handle this exception.
Code is as following
private void Form1_Load(object sender, EventArgs e)
{
winformsMap.MapUnit = GeographyUnit.Meter;
GoogleMapsLayer googleMapLayer = new GoogleMapsLayer(@"C:\Test", stringKey);
googleMapLayer.MapType = GoogleMapsMapType.Hybrid;
LayerOverlay layeroverlay = new LayerOverlay();
layeroverlay.Layers.Add(googleMapLayer);
winformsMap.Overlays.Add(layeroverlay);
winformsMap.Refresh();
}
Regards
Atif Ahmed