Hello,
I am currently testing out mapsuite to replace a current GIS application which has been developed for Pacific Island Countries. The reagion falls right on the dateline, so this functionality is very important for us. I have been setting up an app which brings in google imagery and overlays shapefiles with data which is thematically mapped. I have noticed that along the dateline the wrap isnt correct and parts of countries are missing from the google imagery. My shape polygons are also cropped.
Here is my code to load google maps:
// MAP UNITS AND COORDS
wpfMap1.MapUnit = GeographyUnit.Meter;
wpfMap1.CurrentExtent = new RectangleShape(17897271, -1367305, 19514067, -2411741);//(17897271, -1367305, 19514067, -2411741);
wpfMap1.MapTools.MouseCoordinate.IsEnabled = true;
wpfMap1.MapTools.MouseCoordinate.MouseCoordinateType = MouseCoordinateType.LatitudeLongitude;
wpfMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.StandardColors.White);
wpfMap1.MapTools.PanZoomBar.HorizontalAlignment = System.Windows.HorizontalAlignment.Right;
//OPEN GOOGLEMAP
GoogleMapsLayer googleMapLayer = new GoogleMapsLayer();
LayerOverlay googleOverlay = new LayerOverlay();
googleOverlay.Layers.Add(googleMapLayer);
googleOverlay.WrappingMode = WrappingMode.WrapDateline;
//GoogleMapsOverlay googleOverlay = new GoogleMapsOverlay();
googleOverlay.DrawTilesProgressChanged += new System.EventHandler<DrawTilesProgressChangedTileOverlayEventArgs>(googleOverlay_DrawTilesProgressChanged);
//googleOverlay.WebProxy = System.Net.WebProxy.GetDefaultProxy();
//googleOverlay.CacheDirectory = @"C:\temp\GEMapLayerCache1";
googleMapLayer.WebProxy = System.Net.WebProxy.GetDefaultProxy();
googleMapLayer.CacheDirectory = @"C:\temp\GEMapLayerCache1";
googleMapLayer.MapType = GoogleMapsMapType.Satellite;
//googleOverlay.IsVisible = false;
googleOverlay.Name = "GE";
wpfMap1.Overlays.Add("GE", googleOverlay);
wpfMap1.Overlays.MoveToBottom("GE");
wpfMap1.Refresh();
If you look at the eastern part of Fiji you can see that some of the country is missing. If you are unable to replicate this error then i am happy to send the whole sample applications.
thanks
Phil