Hi,
We have just upgraded to MS 10, WinForms. When we try to display GoogleMaps in a projections other than its native one, we get the following execption:
System.AggregateException was unhandled
HResult=-2146233088
Message=One or more errors occurred.
Source=mscorlib
StackTrace:
at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken)
at ThinkGeo.MapSuite.Layers.GoogleMapsLayer.FjY=(RectangleShape canvasExtentForGoogleDrawing, Int32 zoomLevelsNumber, Double scale)
at ThinkGeo.MapSuite.Layers.GoogleMapsLayer.FTY=(GeoCanvas canvas)
at ThinkGeo.MapSuite.Layers.GoogleMapsLayer.DrawCore(GeoCanvas canvas, Collection1 labelsInAllLayers) at ThinkGeo.MapSuite.Layers.Layer.dyQ=(GeoCanvas canvas, Collection
1 labelsInAllLayers)
at ThinkGeo.MapSuite.Layers.Layer.Draw(GeoCanvas canvas, Collection1 labelsInAllLayers) at ThinkGeo.MapSuite.WinForms.LayerOverlay.DrawCore(GeoCanvas canvas) at ThinkGeo.MapSuite.WinForms.Overlay.9FI=(GeoCanvas canvas) at ThinkGeo.MapSuite.WinForms.Overlay.Draw(GeoCanvas canvas) at ThinkGeo.MapSuite.WinForms.WinformsMap.rVI=(IEnumerable
1 drawingOverlays, RectangleShape extent)
at ThinkGeo.MapSuite.WinForms.WinformsMap.rFI=(RectangleShape drawingExtent, RectangleShape extent)
at ThinkGeo.MapSuite.WinForms.WinformsMap.y1I=(RectangleShape extent)
at ThinkGeo.MapSuite.WinForms.WinformsMap.fhU=(Int32 delayInterval, RectangleShape extent)
at ThinkGeo.MapSuite.WinForms.WinformsMap.Refresh()
at MapSuite_Desktop1.Form1.Form1_Load(Object sender, EventArgs e) in C:\Users\ZipPa\Documents\Visual Studio 2015\Projects\ThinkGeo\GoogleMapsTest\Form1.vb:line 26
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
InnerException:
HResult=-2146233079
Message=failed to load NAD27-83 correction file
Source=ThinkGeo.MapSuite
StackTrace:
at ThinkGeo.MapSuite.Shapes.Proj4Projection.wCI=(Int32 errorNumber)
at ThinkGeo.MapSuite.Shapes.Proj4Projection.ConvertToExternalProjectionCore(Double[] x, Double[] y)
at ThinkGeo.MapSuite.Shapes.Projection.yiI=(Byte[] wellKnownBinary)
at ThinkGeo.MapSuite.Shapes.Projection.xyI=(Byte[] wellKnownBinary)
at ThinkGeo.MapSuite.Shapes.Projection.wyI=(Feature feature)
at ThinkGeo.MapSuite.Shapes.Projection.ConvertToExternalProjection(BaseShape baseShape)
at ThinkGeo.MapSuite.Layers.GoogleMapsLayer.FzY=(Object tileInfo)
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
InnerException:
I have attached a sample project for you to see the problem.
Thanks!
Steve
GoogleMapsTest.zip (37.7 KB)