decorations.js (1077B)
1 class PrintStaticLayer { 2 _layerDummy = true; 3 _printProgressWeight = 0.01; 4 5 cloneForPrint() { 6 return this; 7 } 8 9 // printOptions = { 10 // xhrOptions, 11 // pixelBounds, 12 // latLngBounds, 13 // destPixelSize, 14 // resolution, 15 // scale, 16 // zoom 17 // } 18 async getTilesInfo(printOptions) { 19 return { 20 iterateTilePromises: (function*() { 21 yield { 22 tilePromise: Promise.resolve({ 23 draw: (canvas) => this._drawRaster(canvas, printOptions), 24 isOverlay: true, 25 overlaySolid: this.overlaySolid 26 } 27 ), 28 abortLoading: () => { 29 // no actions needed 30 } 31 }; 32 }).bind(this), 33 count: 1 34 }; 35 } 36 37 _drawRaster(_unused_canvas, _unused_printOptions) { 38 throw new Error("Method not implemented"); 39 } 40 } 41 42 export {PrintStaticLayer};