I did not get any reply the first time I sent this message; so I am sending
it again (a mild case of the Elias syndrome?) hypothesizing the question and
replies might have got lost in the list migration to a new server.
I want to set the zoom of a mapper window so that the window displays the
whole extent of a region object.
I get the minimum & maximum X and Y coordinates of the MBR of the object
through ObjectInfo(Obj,1), ObjectInfo(Obj,2), ObjectInfo(Obj,3),
ObjectInfo(Obj,4). I could then calculate the distance between minimum and
maximum X coordinates, then calculate the distance between minimum and
maximum Y coordinates, select the larger of these two distances as my zoom
factor, use the Set Map ... Zoom ... statement, etc., but I would then
specify the width of the window in whatever distance units. What I want to
do is to zoom the mapper so that it displays the MBR; I would like something
similar to the Zoom In command, except that instead of clicking the
rectangle corners on the map, I would supply them to ProViewer. All of this
in a ProViewer instance controlled by VB.
Any ideas on how to specify the coordinates of the rectangle to be displayed
in the mapper.
Thanks in advance,
_____________________________________________
Claude Lavoie, a.g.
Service du soutien � la client�le
Direction des technologies de l'information
Minist�re des Transports du Qu�bec
35, rue de Port-Royal Est, salle 5.00 a
Montr�al (Qu�bec)
H3L 3T1
T�l�phone: (514) 873-6280
T�l�copieur: (514) 873-8203
Courriel: mailto:[EMAIL PROTECTED]
_____________________________________________
_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.