Web Workers in ArcGIS API for JavaScript

Web Workers in ArcGIS API for JavaScript

Rene Rubalcava | May 23, 2017

Recently there was a thread on GeoNet about how to use workers in the ArcGIS API for JavaScript. This brought up the discussion about the small worker framework that ships with the ArcGIS API 4 for JavaScript. The user was able to figure it out enough to get a cool demo app together.

You can look over the documentation and check out some of the options that are available.

I just wanted to put together a video to show how you might use the workers to offload some processing. In the demo app, I create a series of concentric buffers in the worker and send the geometries back to the client and display them on the map.


It's a fairly simple idea, but I think it demonstrates the basics of using the workers in the API. I'm sure you can find a creative use of the worker framework in your own application development!