[QGIS-trac] [Quantum GIS] #2712: API enhancement: zoomScale(double
scale) on mapCanvas
Quantum GIS
qgis at qgis.org
Thu May 13 14:57:09 EDT 2010
#2712: API enhancement: zoomScale(double scale) on mapCanvas
------------------------------------------------+---------------------------
Reporter: anitagraser | Owner: nobody
Type: enhancement | Status: new
Priority: major: does not work as expected | Milestone: Version 1.5.0
Component: MapCanvas | Version: HEAD
Keywords: | Platform_version:
Platform: All | Must_fix: No
Status_info: 0 |
------------------------------------------------+---------------------------
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
--
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2712>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list