<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-2" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
The only way I know of, is to issue a select of the objects on the
datasource.<br>
While reading the objects, you can get their envelope (aka mbr, bbox,
etc..).<br>
If you sum up alle the objects enevlopes, you can get the minimum
rectangle in which all objects fit.<br>
Once you have this box, your center, will be the center of the box, and
the scale will be the width or height of the box.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth, GEOGRAF A/S
</pre>
<br>
<br>
Ivan Milicevic skrev:
<blockquote cite="mid:9CAB6B340CCF9E44BE4ACFCF56E67B0705A451@supranet"
 type="cite">
  <pre wrap="">Hello,
 
I wonder is it possible to calculate zoom extent on selected objects? For example, I have selected various type of objects (line, polygon, point) but I don't have any XY info in database on these objects. How can I calclate center point and scale in this case?
 
Any help-advices are wellcome.
 
Greetings,
 
Ivan.
  </pre>
  <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>