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

Respect map item atlas scaling mode #17

Closed
rldhont opened this issue Oct 8, 2019 · 0 comments · Fixed by #22
Closed

Respect map item atlas scaling mode #17

rldhont opened this issue Oct 8, 2019 · 0 comments · Fixed by #22
Assignees

Comments

@rldhont
Copy link
Collaborator

rldhont commented Oct 8, 2019

The plugin forced the map item scaling mode to predefined scales with hardcoded scales.
from https://github.com/3liz/qgis-atlasprint/blob/master/filters/atlasprintFilter.py#L241 to https://github.com/3liz/qgis-atlasprint/blob/master/filters/atlasprintFilter.py#L243

        atlas_map.setAtlasScalingMode(QgsLayoutItemMap.Predefined)

        layout.reportContext().setPredefinedScales(predefined_scales)

It will be great to respect the defined map item scaling mode https://github.com/qgis/QGIS/blob/2c69b24ffe903a0d0d7fac59bbfaee02d3ceaa75/src/core/layout/qgslayoutitemmap.h#L48:

  • Fixed
  • Predefined
  • Auto
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants