Hey Jodi,

You could listen to the
extentsChanged<http://www.qgis.org/api/classQgsMapCanvas.html#a2a91ee382ce605e3382b74693f9c4d80>
event
on the mapcanvas.  When the extents change check them and if they are out
of bounds zoom the user back in.

- Nathan


On Fri, Jun 14, 2013 at 5:28 PM, Jordi Torres <[email protected]>wrote:

> Hi.
>
> I'm doing a external project using qgis libraries, and I want the user not
> to zoom out more than a given extent or not to zoom in more than the base
> raster resolution.
>
> Is there a way to force the user to stay into a defined max/min zoom
> levels? Or have I to overwrite the zoom tools and capture the wheel event
> to do what I want?
>
> Thanks.
>
> --
> Jordi Torres
>
>
>
> _______________________________________________
> Qgis-developer mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to