Skip to content

Commit

Permalink
Fix print custom scale
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Dec 17, 2019
1 parent 6b8f768 commit 550ca9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/print/Service.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ PrintService.prototype.encodeMap_ = function(map, scale, object) {
object.projection = viewProjection.getCode();
object.rotation = viewRotation;
object.scale = scale;
object.useNearestScale = false;
object.layers = [];

const mapLayerGroup = map.getLayerGroup();
Expand Down
2 changes: 2 additions & 0 deletions src/print/mapfish-print-v3.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
* @property {Array.<MapFishPrintLayer>} layers
* @property {string} projection
* @property {number} rotation
* @property {boolean} [useNearestScale] Indicates if the map should adjust its scale/zoom level to be
* equal to one of those defined in the configuration file.
*/


Expand Down

0 comments on commit 550ca9c

Please sign in to comment.