The Identify Widget allows you to retrieve information from source data by executing a predefined query(s).
The Identify Widget serves as a means to retrieve attributes for the identified features in your map. By drawing a geometry type using the Identify Widget the underlying features in the map that intersect the drawn geometry will be identified and the results displayed in the Identify Widgets results tab. The results can be configured on a layer by layer basis and the results attributes can have formatting specified.
The following steps indicate how to create a identify layer. Repeat these steps if you need to define multiple identify layers.
The configuration window for this widget opens.
A file explorer window opens allowing you to browse to a local image file to use as the widget icon.
The new identify layer dialog opens. Now enter the Identify URL of the service layer that you wish to use in the widget.
Once you have entered the url, click into another field or press enter on the keyboard in order to load the layers fields into the Available Fields grid.
Give the link an alias and configure the other link options like Disable Link if Null which will prevent the link from showing in the widget if the link field is null, and Disable link in PopUp (self-explanatory), and PopUp Link Type which assigns the link as a text hyperlink in the popup or and image link.
Set the Link Content by assigning static text that represents the link url (i.e. http://www.esri.com) or clicking the Plus button to add a field from the search layer that contains the link url. Do the same for the Link Icon Content.
The add exclude identify layer dialog opens, allowing you to specify layers that are in the map that should be excluded from the identify results if the Only These option is not checked.
The Default Zoom Scale is used when zooming to identify results that are point geometry or when you have not checked the Return Geometry for Zoom.
The Identify Layer Option is used to specify if only the visible, top most, or all the layers will be identifed.
The Identify Tolerance is the distance in screen pixels from the specified geometry within which the identify should be performed.
The Keep Identify Active option specifies that when an identify operation is completed that the drawing tool that is currently selected in the widget will remain active and will not be automatically disabled. This feature allows you to continue to identify multiple features on the map without having to re-select your identify geometry type each time.
The Return Geometry for Zoom option is pretty self explainatory. If this option is not cheked then the default zoom scale will be used to zoom to the identify geometry that was drawn to get the results.
Enable Mouse Over Graphic Info Windows will allow the maps info window to appear when you hover the mouse over the result graphic in the map.
Enable Mouse Over Result Info Windows will display the maps info window when you hover the mouse over the identify result in the widgets results UI.
Use Map Time will allow the identify results to be confined to the maps time extent when the map is time enabled.
Replace Null With Empty String will display an empty string value in the results instead of the word null or undefined.
Disable Layers Drop Down List will remove the Identify From drop down box in the widgets UI, that allows the user to specify that they only want to identify features from that one selected layer.
Disable All Layers Choice will remove the all layers option from the Identify From drop down box in the widgets UI.
Info Window Auto Close (seconds) sets the number of seconds that the info window will remain open for when not hovering over the result, graphic, or info window itself. If you set this value to 0 then the info window will not auto close.
Default activated Select Tool specifies which tool will be activated by default when the widget opens, to allow the user les clicks to get identifying.
Setting the Top map coordinate (in Pixels) and Right map coordinate (in Pixels) forces the map info window to show at a fixed position on the map instead of a location based on the identify results graphic.
The default symbology dialog opens, allowing you to choose the color and style for the identify result symbol.
The result formatting dialog opens, allowing you to choose the color and style for the identify result text.
Clicking the Identify Widget in your application displays the widget. Depending on the Default activated Select Tool choice that was made during configuration the configured identify geometry type will be selected.
Use of the widget can begin imediately by drawing on the map and the identify operation will begin.
The Results view lists all the identified features and thier attributes that have been configured or if Only These is false or not fields were specified for the layer then all the attributes for the identified feature will be listed.