UNPKG

react-bkoi-gl

Version:

React components for Barikoi GL JS

31 lines 847 B
export default function setGlobals(mapLib, props) { const { RTLTextPlugin, maxParallelImageRequests, workerCount, workerUrl } = props; if (RTLTextPlugin && mapLib.getRTLTextPluginStatus && mapLib.getRTLTextPluginStatus() === "unavailable") { const { pluginUrl, lazy = true } = typeof RTLTextPlugin === "string" ? { pluginUrl: RTLTextPlugin } : RTLTextPlugin; mapLib.setRTLTextPlugin(pluginUrl, error => { if (error) { console.error(error); } }, lazy); } if (maxParallelImageRequests !== undefined) { mapLib.setMaxParallelImageRequests(maxParallelImageRequests); } if (workerCount !== undefined) { mapLib.setWorkerCount(workerCount); } if (workerUrl !== undefined) { mapLib.setWorkerUrl(workerUrl); } } //# sourceMappingURL=set-globals.js.map