Skip to content

Improve how printing map preview is managed #10831

@tdipisa

Description

@tdipisa

Description

Currently the printing preview map is always synchronized with the underling viewer's map which means that if you pan the viewer's map the printing preview map moves accordingly.
This makes sometime difficult to manage the printing preview, especially when the preview scale selector is present. In that case, indeed, if you select a scale from the scale selector and then you move the viewer's map, then the preview maps synchronizes loosing the scale previously selected.

map_preview.mp4

As part of this issue, we should detach the printing preview from the viewer's map providing the following:

  • The printing map preview is no longer synchronized with the viewer's map
  • The printing map preview can be moved and zoomed independently using the mouse wheel and/or the scale selector, if present.
  • When the user clicks on print, the final print will in fact use the center and scale (properly converted) on the map preview, with the result of printing the same viewport (the image may change in resolution because of the DPI selector).
  • The sync button in the preview map for manually synching the preview with the viewer's map remain available as is (if configured)

What kind of improvement you want to add? (check one with "x", remove the others)

  • Minor changes to existing features
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Other useful information

Metadata

Metadata

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions