Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way to force a layer to stay at a certain DPI / zoom level #196

Open
csk1 opened this issue Jul 12, 2019 · 0 comments
Open

Add a way to force a layer to stay at a certain DPI / zoom level #196

csk1 opened this issue Jul 12, 2019 · 0 comments

Comments

@csk1
Copy link

csk1 commented Jul 12, 2019

This is a feature request.

An extremely common complaint about QMS base layers is that the labels and symbols shrink when you print a map. See, for example,

I know the fundamental problem is that the web-based services provided by this plugin are just not designed for printing, but as you can see from that long list, people really, really want to use QMS layers for printing. It's just so much easier to add a QMS base layer, rather than finding (and possibly paying for) a high-resolution, printable one.

The issue is because the print composer preview is at a lower resolution than the export. The plugin gets tiles at a higher zoom level in order to match the print DPI, and the higher-resolution tiles have smaller labels and smaller features.

Currently, the best solution I've seen is to export the entire map at a lower DPI. But then you lose the detail of all the layers in your map, not just the base layer.

It would be great if there was an option to force the base layer to export with the same DPI as shown on the screen (either in the map canvas or the print composer). I'm picturing a setting in the plugin Settings, something like:

Print/Export Mode (choose one):

  • Use tiles at the current zoom level when printing or exporting. Labels and feature will stay the same size as shown in the preview. Printed maps may appear low resolution or "pixellated."
  • Use tiles that match the print/export DPI setting, even if they don't match the current preview. Labels and features may change size from how they appear in the preview.

@robintw already figured out part of how to implement this (see here), by setting self.useLastZoomForPrint = True.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants