Select to view content in your preferred language

how to change change zoom of points ??

894
1
06-28-2012 03:01 AM
YassineEL_JADIDI
Deactivated User
hello,
i have this code to zoom to selected point in my datagrid :
 MapPoint myPoint = g.Geometry as MapPoint;
                g.Select();
                if (myPoint != null)
                {
                    Envelope env = new Envelope(myPoint.X - 1000, myPoint.Y - 1000, myPoint.X + 1000, myPoint.Y + 1000);
                    MyMap.ZoomTo(env);
                }

but i want to change this zoom, where can i edit ??
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
but i want to change this zoom, where can i edit ??

I don't understand well the question.
The argument to the method ZoomTo is the envelope you ned to zoom to.
To change it you need to change the way that envelope is initialized (for example by changing the size).
0 Kudos