Hello
I use several overlay (Shape,Google,Virtual Earrth, Image with workfile). I wanted all those use MapUnit = DecimalDegree. I activated the MouseCoordinate in order to have the coordinates displayed on the map.
The shape overlay is ok (-180,+180;-90,+90). But every other overlay give me a much more big range (I think it's like MapUnit = Meter)
I would like to know if Google/VirtualEarth/ImageWorkfile Overlay change the MapUnit automatically and if there is a way to make these overlay take DecimalDegree instead of Meter.
Initialisation of overlays :
Map1.MapBackground.BackgroundBrush = new GeoSolidBrush(GeoColor.StandardColors.Blue);
Map1.CurrentExtent = new RectangleShape(-80.5, 68.9, 80, -60.43);
Map1.MapUnit = GeographyUnit.DecimalDegree;
Map1.MapTools.MouseCoordinate.Enabled = true;
Map1.MapTools.PanZoomBar.Enabled = true;
GoogleOverlay google = new GoogleOverlay("GoogleMap");
google.GoogleMapType = GoogleMapType.Normal;
google.JavaScriptLibraryUri = new Uri(ConfigurationManager.AppSettings["GoogleUri"]);
google.IsBaseOverlay = true;
VirtualEarthOverlay ve = new VirtualEarthOverlay("BingMap");
ve.JavaScriptLibraryUri = new Uri(ConfigurationManager.AppSettings["VEUri"]);
ve.VirtualEarthMapType = ThinkGeo.MapSuite.WebEdition.VirtualEarthMapType.Road;
ve.IsBaseOverlay = true;
ShapeFileFeatureLayer worldLayer = new ShapeFileFeatureLayer(MapPath("~/SampleData/world/cntry02.shp"));
worldLayer.ZoomLevelSet = new GoogleMapZoomLevelSet();
worldLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(GeoColor.FromArgb(255, 243, 239, 228), GeoColor.FromArgb(255, 218, 193, 163), 1);
worldLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
LayerOverlay worldOverlay = new LayerOverlay("ThinkGeo");
worldOverlay.Layers.Add(worldLayer);
worldOverlay.Name = "ThinkGeo";
LayerOverlay geocodeOverlay = new LayerOverlay("GeocodeImageOverlay");
GdiPlusRasterLayer gdiPlusImageLayer = new GdiPlusRasterLayer(MapPath(@"~\SampleData\Geocode\IGN4_CR.jpg"));
gdiPlusImageLayer.UpperThreshold = double.MaxValue;
gdiPlusImageLayer.LowerThreshold = 0;
geocodeOverlay.Layers.Add(gdiPlusImageLayer);
geocodeOverlay.IsBaseOverlay = true;
Map1.CustomOverlays.Add(google);
Map1.CustomOverlays.Add(ve);
Map1.CustomOverlays.Add(geocodeOverlay);