<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=windows-1250"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
It is not a built-in function, so you have to append it.<br>
<br>
The easy way is to modify some of the viewerfiles, but that will cause
trouble on upgrades.<br>
<br>
The slightly more difficult way is to register a "map loaded" event.
You can find code for this in the mail archives.<br>
In the handler, you can retrieve the main frame url by this code:<br>
//Not tested<br>
var openerurl = GetMapFrame().parent.location.href;<br>
<br>
You can then parse the url, and look for x/y/scale parameters in the
string.<br>
There are plenty free url parsers, if you search for it.<br>
<br>
Once you have the data, you can call the ZoomToView function.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Carmelo Saffioti skrev:
<blockquote cite="mid:C2E4163BCEA14442A85545CD6A8DC8DA@carmelo"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.6000.16788" name="GENERATOR">
  <style></style>
  <div><font face="Arial" size="2">Hi everybody,</font></div>
  <div><font face="Arial" size="2">I need to zoom on a defined point of
known coordinates, when the page loads. I saw that it exists the
ZoomToView() function... is it possible to pass to the ajaxviewer a
parameter for zooming on a defined point (like ZoomToView) ?</font></div>
  <div> </div>
  <div><font face="Arial" size="2">I'm calling the ajaxviewer with this
script:</font></div>
  <div><font face="Arial" size="2">location.replace("../../mapviewerjava/ajaxviewer.jsp?SESSION=&lt;%=
sessionId %&gt;&amp;WEBLAYOUT=&lt;%= webLayout %&gt;");</font></div>
  <div> </div>
  <div> </div>
  <div><font face="Arial" size="2">I hope you can help me</font></div>
  <div><font face="Arial" size="2">Cheers</font></div>
  <div><font face="Arial" size="2">Carmelo</font></div>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
  </pre>
</blockquote>
</body>
</html>