OgcApiFeatureLayer gets stuck with slow network

Hi,

It seems that when using OgcApiFeatureLayer with slow network connection or if the server does not reply the whole application is freezed while OgcApiFeatureSource tries to get columns from server. After WebRequest timeouts then app is un-freezed but same happens again when e.g zooming the map. If I remember correctly earlier there were acync version of this layer but not anymore.

How to avoid this issue (causes windows to report that program is not responding) ?

Br, Simo

Hi Simo,

  1. OgcApiFeatureLayer is the synchronous version and has been marked obsolete since 15.0.0-beta139; please use OgcApiAsyncLayer instead. It goes into the same LayerOverlay, and its open and requests are awaited rather than blocked on, so a slow or unreachable service can’t freeze the application.

  2. That said, the freeze itself was ours: LayerOverlay was calling a synchronous layer’s Open() on the UI thread. From 15.0.0-beta245 the open runs on a background thread, so synchronous layers won’t block the UI any more either.

Thanks,
Ben

Hi,

Thanks, what is the current estimation for 15.0.0 release ?

Br. Simo

Hi Simo,

We’ve entered code freeze and are now conducting thorough testing. We’re aiming to release it by the end of this week.

Thanks,
Ben