Skip to content

Commit

Permalink
Expose QgsMapCanvas rotation and centering API to python
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandro Santilli committed Dec 9, 2014
1 parent 6557cb8 commit 2b1b79d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions python/gui/qgsmapcanvas.sip
Expand Up @@ -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();

Expand Down

0 comments on commit 2b1b79d

Please sign in to comment.