hi Ethan,
Yes, I did encounter a lot of problems all of a sudden.
These issues are when my client application goes directly to nearmap.
Items #2 & #4 – I found what was causing the two US States of OHIO & PA not to load and to encounter timeout errors. I was setting the CurrentExtent of the MapControl to the ExpandedExtent of these two layers. I changed the code to not set CurrentExtent as shown below and now the two layers always appear.
Why do you think setting CurrentExtent caused this?
Old Code:
TheAssetsStatic.aMapDisplay.CurrentExtent = TheBoundingBox;
ThePointShape = TheBoundingBox.GetCenterPoint();
TheMapDisplay.CenterAt(ThePointShape);
TheMapDisplay.ZoomTo(ThePointShape, TheMapDisplay.ZoomLevelSet.ZoomLevel18.Scale);
TheMapDisplay.Refresh();
New Code:
ThePointShape = TheBoundingBox.GetCenterPoint();
TheMapDisplay.CenterAt(ThePointShape);
TheMapDisplay.ZoomTo(ThePointShape, TheMapDisplay.ZoomLevelSet.ZoomLevel18.Scale);
TheMapDisplay.Refresh();
Item #3 – I am seeing “27 days left” while running in Visual Studio Debug Mode. When the exe is opened outside the debugger I do not see the eval notice. I updated to the latest MapSuite DLL’s including the latest Beta Version of MapSuite Barebones. How do I resolve the eval notice? What is the difference between Barebones & Standard?
Item #1 – I set WmsRasterLayer.TimeoutInSecond from the default of 20 to 5. Now 5 is a short time. But what it has shown is that when loading both OHIO & PA part of the image was returned and displayed, then my timer expired and so I sent WmsRasterLayer.IsVisible = false. As soon as that property was set received the following exception:
System.Net.WebException was unhandled
Message: An unhandled exception of type ‘System.Net.WebException’ occurred in ThinkGeo.MapSuite.Wpf.dll
Additional information: The request was aborted: The request was canceled.
Your thoughts?
Thanks,
Dennis