workerCount property
num
get
workerCount
Gets and sets the number of web workers instantiated on a page with GL JS maps. By default, it is set to half the number of CPU cores (capped at 6). Make sure to set this property before creating any map instances for it to have effect.
@var {string} workerCount @example mapboxgl.workerCount = 2;
Implementation
external static num get workerCount;
set
workerCount
(num count)
Implementation
external static set workerCount(num count);