-
Thanks to all of the deck.gl contributors out there. I'm finding it to be the best option for working with large datasets on Google Maps. I use @deck.gl/google-maps to load MVTLayers onto Google Maps. Usually it's a single layer on a GoogleMapsOverlay instance. This creates several (usually 5) instances of mapbox vector tile-worker@2.3.11, each with several MBs of memory (one exceeded 10MB). When I am done with a layer, I I'm curious if this is expected behavior. Many thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
loaders.gl (which deck.gl uses under the hood) offers options to control the number of worker threads and also there is a I believe that these are only read the first time a worker farm is created, so you need to provide them in the first I don't have any examples handy but maybe these links will give you enough of a clue to get it working: |
Beta Was this translation helpful? Give feedback.
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
orparse
call, or set them with deck's load options orsetLoaderOptions
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…