public class Button : ESRI.ArcGISExplorer.Application.Button { ExplorerTimer _timer; public override void OnClick() { _timer = new ExplorerTimer(); _timer.Interval = 200; _timer.Tick += new EventHandler(timer_Tick); ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.BeginTrackPoint(new TrackDelegate(TrackPoint), DisplayEffect.Flash); } void timer_Tick(object sender, EventArgs e) { _timer.Stop(); ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.BeginTrackPoint(new TrackDelegate(TrackPoint), DisplayEffect.Flash); } /// <summary> /// Tracking callback for point measuring. /// </summary> private void TrackPoint(TrackingInfo trackingInfo) { if (trackingInfo.Status == TrackStatus.Completed) { //write your identify code here _timer.Start(); } } }
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.