<div dir="ltr">Thank you Nathan :)<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/14 Nathan Woodrow <span dir="ltr"><<a href="mailto:madmanwoo@gmail.com" target="_blank">madmanwoo@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey Jodi,<div><br></div><div>You could listen to the <a href="http://www.qgis.org/api/classQgsMapCanvas.html#a2a91ee382ce605e3382b74693f9c4d80" style="font-size:13px;color:rgb(70,101,162);font-weight:bold;text-decoration:underline;font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;line-height:16px" target="_blank">extentsChanged</a> event on the mapcanvas. When the extents change check them and if they are out of bounds zoom the user back in.</div>
<div><br></div><div>- Nathan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Fri, Jun 14, 2013 at 5:28 PM, Jordi Torres <span dir="ltr"><<a href="mailto:jtorresfabra@gmail.com" target="_blank">jtorresfabra@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div>Hi. <br><br></div><div>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. <br>
<br></div>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?<br><br></div>Thanks. <br clear="all"><span><font color="#888888"><div>
<div><div>
<div><div><br>-- <br><div dir="ltr">Jordi Torres<br><br><br></div>
</div></div></div></div></div></font></span></div>
<br></div></div>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Jordi Torres<br><br><br></div>
</div>