Select to view content in your preferred language

how to create identify tool.......

3427
5
01-16-2011 11:52 PM
srinivasreddy
Deactivated User
Actually i tried to make a tool like identity in explorer, i achieved upto certain extent, but here i write the code under button_click event, means before going to click on the map user has too click on the button then only it is working.

But i need the way in ARcMap(like once user selects the tool(here button) until and unless he selects another tool it works for identify the features)....So here i need to write the code map_click event. but i haven't found such event on explorer desktop. if anybody having solutions give me some ideas.....
thank you.....
0 Kudos
5 Replies
RuthSantoro
Emerging Contributor
I'm very interesting in this as well, could you give us some hints to develop the Identify tool?

It's the first time I use ArcGIS Explorer and I would appreciate any help.

Thank you in advance.

Ruth
0 Kudos
AndreiIvanov
Deactivated User
Identify tool already exist within application. What are you trying to achieve rewriting it yourself?

You can imitate "tool" behavior with ExplorerTimer and BeginTrackPoint, something like that:

    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();
            }
        }
    }
0 Kudos
srinivasreddy
Deactivated User
Thank you.. very much for ur reply mr.Andriy Ivanov..............
0 Kudos
BingZhu
Deactivated User
We need to customize the popup window when identify a feature. How to access the popup class from the Addin (dockable window) so the attribute data in the Addin can be displayed in customized popup window?

Thanks!
0 Kudos
SarahGreenlaw
Regular Contributor
Hello! 

see this link on the Identify tool already in ArcGIS Explorer - maybe it will suit your needs?
http://forums.arcgis.com/threads/42661-Exporting-layer-package-to-display-in-ArcExplorer

Sarah
0 Kudos