Custom OpenLayers build for WebWorker

المشرف العام

Administrator
طاقم الإدارة
I want to run lengthy processes with the ol.source.Vector class. In order to free up the UI while these processes run I want to push the tasks into a WebWorker. The default OpenLayers 3.5.0 library will not import into a WebWorker script due to the document, ActiveX and other objects being inaccessible from inside a WebWorker thread.

I am thinking about creating a custom build of OpenLayers which only include handful of classes such as ol.source.Vector and ol.format.GeoJSON.

Would this work or will all classes have a dependency on either the document or another inaccessible object?

Cheers,Dennis



أكثر...
 
أعلى