We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26534fa commit fe7ffd3Copy full SHA for fe7ffd3
widgets/PrintPlus.js
@@ -438,11 +438,11 @@ define([
438
this.oldLODs = this.map._params.tileInfo.lods;
439
// Set one LOD for the printing scale and zoom to it.
440
var resolution = printScale / (this.oldLODs[0].scale / this.oldLODs[0].resolution);
441
- this.map._params.tileInfo.lods[0] = {
+ this.map._params.tileInfo.lods = [{
442
'level': 0,
443
'resolution': resolution,
444
'scale': printScale
445
- };
+ }];
446
deferred = this.map.centerAndZoom(this.mapAreaCenter, 0);
447
} else {
448
// Zoom to the print scale
0 commit comments