I have the following code (see below) to generate a Bing Map Layer but it's not displaying (see below). Can you tell me what I am missing?
private BingMapsLayer BingMapLayer;
private BingMapsOverlay BingMapOverlay;
private string BingMapApplicationID = "My Bing Application Key al;kdjalksdfj;laksdjf";
private void InitMapBing()
{
MapControl.MapUnit = GeographyUnit.Meter;
MapControl.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);
BingMapOverlay = new BingMapsOverlay(BingMapApplicationID, BingMapsMapType.Road);
BingMapLayer = new BingMapsLayer(BingMapApplicationID, BingMapsMapType.Road, App.TempFolder);
LayerOverlay staticOverlay = new LayerOverlay();
staticOverlay.Layers.Add("WorldLayer", BingMapLayer);
MapControl.Overlays.Add(BingMapOverlay);
MapControl.Refresh();
}
Thanks. Bob