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(); } } }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.