示例#1
0
        public void panToGraphics(IGraphicCollection gc)
        {
            IEnvelope env = GraphicsUtil.GetGraphicsEnvelope(gc);

            if (env == null)
            {
                return;
            }
            IMapPoint p      = env.GetCenter();
            MapPoint  center = p as MapPoint;

            _mapView.SetView(center);
        }