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); }
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); }