Skip to content

Commit

Permalink
Restrict max export size to 4096px
Browse files Browse the repository at this point in the history
  • Loading branch information
russss committed May 14, 2024
1 parent 4bb9702 commit 2f7cda0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/export/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class ExportControl implements maplibregl.IControl {
center: this._map!.getCenter(),
pixelRatio: this.pixelRatio,
// The maximum size may be limited by the graphics card.
maxCanvasSize: [16384, 16384],
maxCanvasSize: [4096, 4096],
zoom: this.exportZoom,
// NB: bearing and pitch not supported
interactive: false,
Expand Down

0 comments on commit 2f7cda0

Please sign in to comment.