feat(worker): worker Source

This commit is contained in:
thinkinggis 2019-07-08 16:08:44 +08:00
parent d7d66a26f6
commit 1a5faaea45
4 changed files with 9 additions and 9 deletions

View File

@ -10,7 +10,7 @@ export default class VectorTileSource extends Base{
} }
loadTile(tile, callback) { loadTile(tile, callback) {
const params = { const params = {
id: tile, id: tile
}; };
this.workerController.send('loadTile', params, done.bind(this)); this.workerController.send('loadTile', params, done.bind(this));
function done(err, data) { function done(err, data) {

View File

@ -34,7 +34,7 @@ export default class VectorTileSource extends Base {
const workerTile = new WorkerTile(params); const workerTile = new WorkerTile(params);
workerTile.abort = this.loadVectorData(params, (err, response) => { workerTile.abort = this.loadVectorData(params, (err, response) => {
}) });
} }