Hi,<div><br></div><div>not sure if it's the same, but the Aaron Racicot's MirrorMap plugin does something similar. Have a look at it:</div><div><br></div><div><a href="http://www.reprojected.com/geoblog/2009/02/17/mirrormap/">http://www.reprojected.com/geoblog/2009/02/17/mirrormap/</a></div>
<div><br></div><div>Regards, </div><div><br></div><div>Germán<br><br><div class="gmail_quote">On Thu, Sep 30, 2010 at 2:13 PM, GOO Creations <span dir="ltr"><<a href="mailto:goocreations@gmail.com">goocreations@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff" text="#000000">
<span style="font-size:11pt;line-height:115%">Hello, </span><br>
<span style="font-size:11pt;line-height:115%"></span><br>
<span style="font-size:11pt;line-height:115%"> Is there any trick I
can use to zoom into a canvas with a specific centre AND a
specific scale.</span><br>
<span style="font-size:11pt;line-height:115%"> I have 2 map
canvases, and I want to zoom into the same position and scale on
both canvases at the same time: If i zoom into canvas1 at location
(x,y) with factor 0.87, canvas2 should also zoom in with
factor0.87 at position (x,y).</span><br>
<span style="font-size:11pt;line-height:115%"> </span><br>
<span style="font-size:11pt;line-height:115%"> What I currently do
is:</span><br>
<span style="font-size:11pt;line-height:115%"> 1. When the user
zooms on one canvas (zoomLastStatusChanged signal), the signal is
caught and the continues to step 2</span><br>
<span style="font-size:11pt;line-height:115%"> 2. Zoomin ->
QgsMapCanvas provides 2 functions that can be used: zoomWithCenter
and zoomScale</span><br>
<span style="font-size:11pt;line-height:115%"> </span><br>
<span style="font-size:11pt;line-height:115%"> The problem is that
there is not a function that can zoom into a certain point WITH a
certain scale.</span><br>
<span style="font-size:11pt;line-height:115%"> If zoomScale is used
and one image is moved/paned individual, the zooming will have the
same scale, but with different locations.</span><br>
<span style="font-size:11pt;line-height:115%"> Hence if I zoom into
one point, both canvases should the same location (zoomed in with
the same amount)</span><br>
<span style="font-size:11pt;line-height:115%"> </span><br>
<span style="font-size:11pt;line-height:115%"> If zoomWithCenter is
used a fixed factor will be used to zoom in. Hence, if I zoom in
on canvas1 with a factor different to 1, canvas2 will be zoomed
into the correct location, but with a factor of 1 and not the
factor of canvas1.</span><br>
<span style="font-size:11pt;line-height:115%"> </span><br>
<span style="font-size:11pt;line-height:115%"> Does anyone have a
solution to this problem? And is it even possible?</span><br>
<span style="font-size:11pt;line-height:115%"> </span><br>
<span style="font-size:11pt;line-height:115%"> Thanks</span><br>
<span style="font-size:11pt;line-height:115%"> Christoph</span>
</div>
<br>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">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><br clear="all"><br>-- <br>-----------<br> |\__ <br>(:>__)(<br> |/ <br><br>Soluciones Geoinformáticas Libres <br><a href="http://geotux.tuxfamily.org/">http://geotux.tuxfamily.org/</a><br>
</div>