#2712 closed enhancement (fixed)
API enhancement: zoomScale(double scale) on mapCanvas
Reported by: | anitagraser | Owned by: | ctimko |
---|---|---|---|
Priority: | major: does not work as expected | Milestone: | Version 1.5.0 |
Component: | MapCanvas | Version: | Trunk |
Keywords: | Cc: | ||
Must Fix for Release: | No | Platform: | All |
Platform Version: | Awaiting user input: | no |
Description
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
Attachments (2)
Change History (6)
comment:1 by , 14 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
by , 14 years ago
comment:3 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
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))
Patch generated by SVN in Eclipse