Upload the current map state, layout, and geometry options. Buffers are copied (not transferred) so the main-thread map stays usable. Call again after any map edit before requesting rebuilds — the worker builds from its snapshot, not the live map.
Request one chunk build against the last-synced snapshot. Resolves with
the finished arrays (normals included), or null if the build failed or
the builder was disposed mid-flight.
Terminate the worker and resolve all in-flight builds with null.
Promise-based chunk building on a worker:
syncMapuploads the map snapshot and options,buildrequests one chunk's arrays. Responses resolve in any order (matched by id).disposeterminates the worker and rejects all in-flight builds withnullresolutions so callers can simply drop them.