From 1317220a01e3c7947ce9406f4e58ce1ef443552f Mon Sep 17 00:00:00 2001 From: Marco Hugentobler Date: Mon, 4 Jan 2016 10:33:07 +0100 Subject: [PATCH] Update qgsmapcanvas.sip --- python/gui/qgsmapcanvas.sip | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/gui/qgsmapcanvas.sip b/python/gui/qgsmapcanvas.sip index 31707a9a71c..ba436e3aa37 100644 --- a/python/gui/qgsmapcanvas.sip +++ b/python/gui/qgsmapcanvas.sip @@ -543,6 +543,10 @@ class QgsMapCanvas : QGraphicsView //! called when panning is in action, reset indicates end of panning void moveCanvasContents( bool reset = false ); + //! Zooms to feature extent. Adds a small margin around the extent + //! and does a pan if rect is empty (point extent) + void zoomToFeatureExtent( QgsRectangle& rect ); + //! called on resize or changed extent to notify canvas items to change their rectangle void updateCanvasItemPositions();