Skip to content

GoogleMapsOverlay, MVTLayer, and memory #5524

Answered by ibgreen
dCogs asked this question in Q&A
Discussion options

You must be logged in to vote

loaders.gl (which deck.gl uses under the hood) offers options to control the number of worker threads and also there is a reuseWorkers: false option.

I believe that these are only read the first time a worker farm is created, so you need to provide them in the first load or parse call, or set them with deck's load options or setLoaderOptions

I don't have any examples handy but maybe these links will give you enough of a clue to get it working:

https://github.com/visgl/loaders.gl/blob/1c12b3e743d05eecd9737387bdf15c0095786de8/modules/worker-utils/src/lib/worker-farm/worker-farm.js#L27

https://github.com/visgl/loaders.gl/blob/5253b009b919277b1f548d4e7467546ce0469600/modules/core/src/lib/load…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dCogs
Comment options

@ibgreen
Comment options

Answer selected by dCogs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants