diff --git a/src/Leaflet.VectorGrid.Slicer.js b/src/Leaflet.VectorGrid.Slicer.js index 1293519..06d4bc7 100644 --- a/src/Leaflet.VectorGrid.Slicer.js +++ b/src/Leaflet.VectorGrid.Slicer.js @@ -72,7 +72,7 @@ L.VectorGrid.Slicer = L.VectorGrid.extend({ } // this._worker = new Worker(window.URL.createObjectURL(new Blob([workerCode]))); - this._worker = new Worker(workerCode); + this._worker = new Worker(options.workerUrl || workerCode); // Send initial data to worker. this._worker.postMessage(['slice', geojson, options]);