I was reviewing the sample application ‘HideOrShowFeatureLayer’. This application has a WorlkMapKit overlay and a layer for the countries shape file. The application displays the world map and allows zooming if the Overlays.Add(“WorldOverlay”, staticOverlay) statement is commented out. When uncommented, the map displays but generates an error on zoom. Any comments appreciated.
LayerOverlay staticOverlay = new LayerOverlay();
staticOverlay.Layers.Add(“WorldLayer”, worldLayer);
//winformsMap1.Overlays.Add(“WorldOverlay”, staticOverlay);