Hi all,
I would like to be able to switch from a Google maps background and no background at all, I think it's possible but I'm doing it in a dirty way because I create an empty layer but I saw with firebug that the page tries to load tiles from this layer so I think it's not very clean !
Is there a better way to do that ?
Map1.MapBackground.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);
LayerOverlay emptyLayerOverlay = new LayerOverlay("emptyLayerOverlay");
emptyLayerOverlay.Name = "None";
emptyLayerOverlay.IsBaseOverlay = true;
Map1.CustomOverlays.Add(emptyLayerOverlay);
GoogleOverlay googleMapsOverlay = new GoogleOverlay("googleMapsOverlay");
googleMapsOverlay.Name = "Google Maps";
googleMapsOverlay.GoogleMapType = GoogleMapType.Hybrid;
googleMapsOverlay.IsBaseOverlay = true;
Map1.CustomOverlays.Add(googleMapsOverlay);