mirror of https://gitee.com/antv-l7/antv-l7
20 lines
587 B
JavaScript
20 lines
587 B
JavaScript
/* eslint-disable */
|
|
|
|
var shared, worker, L7;
|
|
// define gets called three times: one for each chunk. we rely on the order
|
|
// they're imported to know which is which
|
|
function define(_, chunk) {
|
|
if (!shared) {
|
|
shared = chunk;
|
|
} else if (!worker) {
|
|
worker = chunk;
|
|
} else {
|
|
var workerBundleString = 'var sharedChunk = {}; (' + shared + ')(sharedChunk); (' + worker + ')(sharedChunk);'
|
|
|
|
var sharedChunk = {};
|
|
shared(sharedChunk);
|
|
L7 = chunk(sharedChunk);
|
|
L7.workerUrl = window.URL.createObjectURL(new Blob([workerBundleString], { type: 'text/javascript' }));
|
|
}
|
|
}
|