ZoomToLouisville.vb
' Copyright 2011 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. ' Imports System Imports System.Collections.Generic Imports System.ComponentModel Imports System.Data Imports System.Linq Imports System.Text Imports ESRI.ArcGISExplorer Imports ESRI.ArcGISExplorer.Application Imports ESRI.ArcGISExplorer.Geometry Imports ESRI.ArcGISExplorer.Mapping Imports ESRI.ArcGISExplorer.Data Imports ESRI.ArcGISExplorer.Threading Public Class ZoomToLouisville Inherits ESRI.ArcGISExplorer.Application.Button Public Overrides Sub OnClick() Dim louisville As Viewpoint = New Viewpoint(New Envelope(-86.098356, 37.927556, -85.277087, 38.496576)) Application.ActiveMapDisplay.ZoomTo(louisville) End Sub End Class