Feature request #2712
API enhancement: zoomScale(double scale) on mapCanvas
|Assignee:||Charles Timko -|
|Pull Request or Patch supplied:||Resolution:||fixed|
|Easy fix?:||No||Copied to github as #:||12772|
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
#3 Updated by Charles Timko - over 11 years ago
- Resolution set to fixed
- Status changed from In Progress to 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))