Hi,

Does anyone know how MapInfo resolves zoom distances based on degrees? 
The following code is not doing what I would expect (to zoom a window to
the x-extents of one specific object)

minx = objectgeography(ob,obj_geo_minx)
maxx = objectgeography(ob,obj_geo_maxx)
miny = ...
maxy = ...
centerx = (maxx-minx)/2
centery = ...
set map center(centerx,centery)
set map zoom (maxx-minx) units "degree"

I have verified that the bounding units are degrees and even using the
results from a simple subtraction from the object properties dialog does
not get the extents right.

I was under the impression that the "zoom distance" parameter for "set
map zoom" should only affect the x-extents of the map.  Is this
incorrect?

If there is an easier way to center an object and zoom to its greatest
extent I would love to know.

Thanks,
Jon




---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to