Hi,
We have been using OgcApiFeatureLayer with LayerOverlay but with 14.3.1 release OgcApiFeatureSource implementation seems to be changed so that if network is disconnected after initial drawing next drawing causes infinite loop in GetFeaturesInsideBoundingBoxCore method.
Problem seems to be this while loop (exception is thrown and text2 is string.Empty => text is string.Empty => text != null is always false):
protected override Collection<Feature> GetFeaturesInsideBoundingBoxCore(RectangleShape boundingBox, IEnumerable<string> returningColumnNames)
{
Collection<Feature> collection = new Collection<Feature>();
string text = GetRequestUrlForFeatures(boundingBox, BulkSize);
while (text != null)
{
string text2 = string.Empty;
Collection<Feature> collection2 = new Collection<Feature>();
ThinkGeoDebugger.Log("Sending Request to " + text, ThinkGeoLogType.WebRequest);
try
{
(text2, collection2) = lSM_003D(text);
}
catch (Exception)
{
}
collection.ixU_003D(collection2);
text = text2;
}
return collection;
}
This can be easily re-produced with OGCAPIFeatureServer HowDol sample by changing OgcApiFeaturesOverlay to LayerOverlay.
Is there any way to fix this issue since that infinite loop causes that OgcApiFeatureLayer stops working totally and do not recover even if network connection is restored. (We are using other layers on same LayerOverlay with OgcApiFeatureLayer so using OgcApiFeaturesOverlay is not viable option)
Br, Simo