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

API enhancement: zoomScale(double scale) on mapCanvas #12772

Closed
qgib opened this issue May 13, 2010 · 4 comments
Closed

API enhancement: zoomScale(double scale) on mapCanvas #12772

qgib opened this issue May 13, 2010 · 4 comments
Labels
Feature Request Map and Legend Related to map or legend rendering
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented May 13, 2010

Author Name: Anita Graser (@anitagraser)
Original Redmine Issue: 2712

Redmine category:map_canvas
Assignee: Charles Timko -


It would be nice to have a function that accepts a scale value and actually affects the scale of the map, so it can be used from inside a python plugin.

iface.mapCanvas().mapRenderer().setScale(double scale) only affects the value in the scale box in the bottom right corner of QGIS window.

Related forum thread: http://forum.qgis.org/viewtopic.php?f=5&t=6572


@qgib
Copy link
Contributor Author

qgib commented May 13, 2010

Author Name: Charles Timko - (Charles Timko -)


  • status_id was changed from Open to In Progress

@qgib
Copy link
Contributor Author

qgib commented May 13, 2010

Author Name: Charles Timko - (Charles Timko -)


I am leaving the closing of this ticket to someone of higher rank :-D

@qgib
Copy link
Contributor Author

qgib commented May 14, 2010

Author Name: Charles Timko - (Charles Timko -)


Ignore patch.txt, because after I was able to fully test it I realized I left something out so it wasn't exposed yet. bug2717fix.diff has been tested and zoomScale is exposed and does work within Python. ((And since i know this patch works I am resolving this bug))


  • resolution was changed from to fixed
  • status_id was changed from In Progress to Closed

@qgib
Copy link
Contributor Author

qgib commented May 17, 2010

Author Name: Jürgen Fischer (@jef-n)


applied in e88a80a (SVN r13518). Thanks.

@qgib qgib added Feature Request Map and Legend Related to map or legend rendering labels May 24, 2019
@qgib qgib added this to the Version 1.5.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Map and Legend Related to map or legend rendering
Projects
None yet
Development

No branches or pull requests

1 participant