ZoomToLouisville.cs
// Copyright 2010 ESRI // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // You may freely redistribute and use this sample code, with or // without modification, provided you include the original copyright // notice and use restrictions. // // See the use restrictions. // using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using ESRI.ArcGISExplorer; using ESRI.ArcGISExplorer.Application; using ESRI.ArcGISExplorer.Mapping; using ESRI.ArcGISExplorer.Geometry; using ESRI.ArcGISExplorer.Data; using ESRI.ArcGISExplorer.Threading; namespace VehicleTrackingExtCS { public class ZoomToLouisville : ESRI.ArcGISExplorer.Application.Button { public override void OnClick() { Viewpoint louisville = new Viewpoint(new Envelope(-86.098356, 37.927556, -85.277087, 38.496576)); Application.ActiveMapDisplay.ZoomTo(louisville); } } }