ThinkGeo.com    |     Documentation    |     Premium Support

Asynchronous drawing of overlays

Hello,

I have a question regarding drawing of overlays on map.
Right now we have a performance issue using TiledWMSLayer and InMemoryFeatureLayer, because InMemoryFeatureLayer waits until all tiles of the WMS are drawn.

My scenario:
I have a TiledWMSLayer as background map and several InMemoryFeatureLayer and/or additional TiledWMSLayer.
If one of the layer takes a while getting data, the whole drawing process waits until this layer drawing is done. It looks like the drawing of all overlays is currently synchronous.

Question:
Is there a way to enable asynchronous getting of data for drawing? E.g. I want to be able to get data for all available InMemoryFeatureLayer even if the WMS is not finished with drawing of all tiles.

Regards,

Artur Osmanov

Hi Artur,

The solution is put your TiledWMSLayer and InMemoryFeatureLayer in two overlays.

Here is a sample for that.

9444.zip (101.4 KB)

Regards,

Ethan