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(); } } }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.