Tuesday, February 9, 2010

OnMouseMove and toolbar control 'identify'

ArcGIS engine library provides us with the event handler OnMouseMove that deals with mouse motion listener. Now I can extract the mapX and mapY of the point where the mouse has been moved.

The ArcGIS engine divides the Jpanel into three beans:
1. Topmost: toolbar
2. Leftmost: Table of Contents (TOC bean)
3. other: Map View.

I found an important toolbar control 'identify'. If this control is active and I click on any point on the Map view, it opens a new window. The new window contains a table of information related with the map-point as extracted from the .mxd file. The view of these information can be customized by selecting either "All layer" or "Top-most Layer".

Suppose if the mouse has been clicked on somewhere inside 'California' of the US map, the table shows State_name, population, area, households etc. of CA.

No comments:

Post a Comment