Skip to content

Commit fe7ffd3

Browse files
committed
set the entire map lod array instead of just altering the first eintry.
1 parent 26534fa commit fe7ffd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

widgets/PrintPlus.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -438,11 +438,11 @@ define([
438438
this.oldLODs = this.map._params.tileInfo.lods;
439439
// Set one LOD for the printing scale and zoom to it.
440440
var resolution = printScale / (this.oldLODs[0].scale / this.oldLODs[0].resolution);
441-
this.map._params.tileInfo.lods[0] = {
441+
this.map._params.tileInfo.lods = [{
442442
'level': 0,
443443
'resolution': resolution,
444444
'scale': printScale
445-
};
445+
}];
446446
deferred = this.map.centerAndZoom(this.mapAreaCenter, 0);
447447
} else {
448448
// Zoom to the print scale

0 commit comments

Comments
 (0)