forgot to include the list :) <br><br>You can use parseFloat() js function as well. ;) <br><br>function zoomToExtents(minx,miny,maxx,<div id="1fjk" class="ArwC7c ckChnd">maxy) {<br>&nbsp;&nbsp;&nbsp; var a = [];<br>&nbsp;&nbsp;&nbsp; a[0] = parseFloat(minx);<br>
&nbsp;&nbsp;&nbsp; a[1] = parseFloat(miny);<br>&nbsp;&nbsp;&nbsp; a[2] = parseFloat(maxx);<br>&nbsp;&nbsp;&nbsp; a[3] = parseFloat(maxy);<br>
&nbsp; <br>&nbsp;&nbsp;&nbsp; var mapWidget = Fusion.getMapById(&#39;mapArea&#39;); <br>&nbsp;&nbsp;&nbsp; var maps = mapWidget.getAllMaps(); <br>&nbsp;&nbsp;&nbsp; var map = maps[0];<br>&nbsp; <br>&nbsp;&nbsp;&nbsp; map.mapWidget.setExtents(new OpenLayers.Bounds(a[0], a[1], a[2],&nbsp; a[3]));<br>

}<br><br>Cheers<br><br>Paul D.</div><br><br><div class="gmail_quote">On Fri, Jul 11, 2008 at 9:04 AM, Tómas Guđmundsson &lt;<a href="mailto:tomas@snertill.is">tomas@snertill.is</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Forgot to include the list.<br>
<br>
-----Original Message-----<br>
From: Tómas Guđmundsson<br>
Sent: 10. júlí 2008 08:26<br>
To: &#39;Miguel Vasquez&#39;<br>
Subject: RE: [fusion-users] I dont know how zoom a point in fusion<br>
<br>
Hi Miguel.<br>
<br>
I understand your problem. What I did to zoom in and move to the point<br>
Is that I created a box (extents) around the point I want to zoom in to.<br>
This is shown in CenterSelection.js I think and here is how I did it.<br>
<br>
var lowerLeftX = x - 100;<br>
var lowerLeftY = y - 100;<br>
var upperRightX = x - (-100); // This is a hack for when the result of x + 100 equals in a string<br>
var upperRightY = y - (-100); // due to wrong type coersion by javascript.<br>
this.getMap().setExtents(new OpenLayers.Bounds(lowerLeftX, lowerLeftY, upperRightX, upperRightY));<br>
<br>
You could just replace &quot;this.getMap()&quot; with your oMap variable. Somehow,<br>
and I don&#39;t know why, but Bounds function could not accept upperRightX and<br>
Y when I did &quot;x + 100&quot; because then it turned out to be a string, according<br>
to Firebug, which is very weird but this little hack does the trick. Hope<br>
this helps.<br>
<br>
Regards,<br>
<font color="#888888">Tómas.<br>
</font><div><div></div><div class="Wj3C7c"><br>
-----Original Message-----<br>
From: <a href="mailto:fusion-users-bounces@lists.osgeo.org">fusion-users-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:fusion-users-bounces@lists.osgeo.org">fusion-users-bounces@lists.osgeo.org</a>] On Behalf Of Miguel Vasquez<br>

Sent: 9. júlí 2008 19:18<br>
To: <a href="mailto:fusion-users@lists.osgeo.org">fusion-users@lists.osgeo.org</a><br>
Subject: [fusion-users] I dont know how zoom a point in fusion<br>
<br>
Hi all, i new in the list i try to do a zooming of a point in Mapguide<br>
Open source but i cant do that i type a script in my app but it<br>
zooming but dont int the point of i type. The script its the next.<br>
<br>
function ZoomToPoint()<br>
{<br>
 &nbsp; &nbsp; var Fusion = window.top.Fusion;<br>
 &nbsp; &nbsp; var oMap = Fusion.getMapByIndice(0);<br>
 &nbsp; &nbsp; oMap.zoom(2.5637,78.2993, 10);<br>
}<br>
<br>
the error its when i click in the button that fire this function the<br>
scale change but dont move to the point. The x and y valor its from<br>
status bar display this valor.<br>
<br>
my web app.<br>
<br>
<a href="http://200.48.28.8:8008/mapguide/msssig/SIGFrmPrincipal.jsp" target="_blank">http://200.48.28.8:8008/mapguide/msssig/SIGFrmPrincipal.jsp</a> its my<br>
first application. In opcion in task panel &quot;Nombre de vía&quot; type<br>
benavides and the result has a button in the final page when click<br>
show the problem.<br>
<br>
PD. sorry for my english i am latinamerican.<br>
<br>
Atte<br>
Miguel Vasquez<br>
_______________________________________________<br>
fusion-users mailing list<br>
<a href="mailto:fusion-users@lists.osgeo.org">fusion-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/fusion-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/fusion-users</a><br>
_______________________________________________<br>
fusion-users mailing list<br>
<a href="mailto:fusion-users@lists.osgeo.org">fusion-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/fusion-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/fusion-users</a><br>
</div></div></blockquote></div><br>