I am able to get the sample code working using WorlMapKitWmsWebOverlay but not with BingMapsOverlay. Has anyone been able to make this work?
Here is my code:
map1.MapUnit = GeographyUnit.Meter;
Proj4Projection proj4 = new Proj4Projection();
proj4.InternalProjectionParametersString = Proj4Projection.GetEsriParametersString(4326); //Geodetic (decimal degrees).
proj4.ExternalProjectionParametersString = Proj4Projection.GetBingMapParametersString(); // Google Map projection (Spherical Mercator)
//Gets the RectangleShape in the Google Map projection.
proj4.Open();
RectangleShape bingMapRectangleShape = proj4.ConvertToExternalProjection(new RectangleShape(-130.5615234375, 63.193359375, -44.0771484375, 11.337890625));
proj4.Close();
AddBingOverlay(BingMapsStyle.Hybrid);
//map1.MapUnit = GeographyUnit.DecimalDegree;
//map1.CustomOverlays.Add(new WorldMapKitWmsWebOverlay());
//Add NoaaWeatherStationFeatureLayer to LayerOverlay.
LayerOverlay noaaWeatherStationOverlay = new LayerOverlay();
map1.CustomOverlays.Add(noaaWeatherStationOverlay);
NoaaWeatherStationFeatureLayer noaaWeatherStationFeatureLayer = new NoaaWeatherStationFeatureLayer();
noaaWeatherStationFeatureLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(new NoaaWeatherStationStyle());
noaaWeatherStationFeatureLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
noaaWeatherStationOverlay.Layers.Add(noaaWeatherStationFeatureLayer);
//move map to usa.
map1.CurrentExtent = bingMapRectangleShape;