I develop an application using VB and Mapsuite 10 for WPF. There are several overlays (one with shape files, one with vehicles…). I have set Overlay.DrawingExceptionMode = ThinkGeo.MapSuite.Drawing.DrawingExceptionMode.DrawException to every overlay that I use, because I don’t want my app to enter break mode. Is there a way when an exception is drawn to know which overlay is the cause of the exception?
WPF Map Draw Exception
Hi Marios,
- If you are debugging it, you can set the mode to throw exception, then you can know which overlay it is.
- You can set the event layerOverlay.DrawingException or layerOverlay.DrawnException, and see what’s the sender of it
- You can see the base map works well, just comment the overlay which you make sure render OK, it’s the exclusion method.
Wish that’s helpful.
Regards,
Ethan