How can I stop Overlay from drawing and close the FeatureLayer? I can see the same question is asked in Stop/Interrupt Drawing but I cannot implement that in v12.
When I did that, I faced with this exception:
at System.Data.SqlClient.SqlDataReader.CheckDataIsReady(Int32 columnIndex, Boolean allowPartiallyReadColumn, Boolean permitAsync, String methodName)
at System.Data.SqlClient.SqlDataReader.TryReadColumn(Int32 i, Boolean setTimeout, Boolean allowPartiallyReadColumn)
at System.Data.SqlClient.SqlDataReader.GetValueInternal(Int32 i)
at System.Data.SqlClient.SqlDataReader.GetValue(Int32 i)
at ThinkGeo.Core.SqlServerFeatureSource.ByE=(SqlDataReader dataReader)
at ThinkGeo.Core.SqlServerFeatureSource.EEk=(RectangleShape boundingBox, QueryType queryType, IEnumerable`1 returningColumnNames)
at ThinkGeo.Core.FeatureSource.GetFeaturesForDrawing(RectangleShape boundingBox, Double screenWidth, Double screenHeight, IEnumerable`1 returningColumnNames)
at ThinkGeo.Core.FeatureLayer.DrawCore(GeoCanvas canvas, Collection`1 labelsInAllLayers)
at Core.Contract.Sources.ITNSqlFeatureLayer.DrawCore(GeoCanvas canvas, Collection`1 labelsInAllLayers) in D:\Source\repos\TRACC\Core.Contract\Sources\ITNSqlFeatureLayer.cs:line 30