Skip to content
Permalink
Browse files

Expose QgsMapCanvas rotation and centering API to python

  • Loading branch information
Sandro Santilli
Sandro Santilli committed Dec 9, 2014
1 parent 6557cb8 commit 2b1b79dbcb2280eb9c113809e54ba3109deb9b2b
Showing with 16 additions and 0 deletions.
  1. +16 −0 python/gui/qgsmapcanvas.sip
@@ -132,6 +132,22 @@ class QgsMapCanvas : QGraphicsView
//! Set the extent of the map canvas
void setExtent( const QgsRectangle &r );

//! Get the current map canvas rotation in clockwise degrees
//! @note added in 2.8
double rotation() const;

//! Set the rotation of the map canvas in clockwise degrees
//! @note added in 2.8
void setRotation( double degrees );

//! Set the center of the map canvas, in geographical coordinates
//! @note added in 2.8
void setCenter( const QgsPoint& center );

//! Get map center, in geographical coordinates
//! @note added in 2.8
QgsPoint center() const;

//! Zoom to the full extent of all layers
void zoomToFullExtent();

0 comments on commit 2b1b79d

Please sign in to comment.
You can’t perform that action at this time.