Identify Features in A Feature Layer: Feature Layers Map Image Layers Web Map Service (WMS) Layers Graphics Overlays
Identify Features in A Feature Layer: Feature Layers Map Image Layers Web Map Service (WMS) Layers Graphics Overlays
htm
Maps and scenes often combine multiple sources of information such as feature layers, image
layers, and graphics. Labels and legends don't always provide enough information to work
out what the map or scene is displaying. Use the identify methods to quickly answer the
question 'what is this item here?', allowing your users to easily explore and learn about the
map or scene content by tapping or clicking on them. Information returned can be shown in
pop-ups or other UI components in your app.
Within all the layers in the map or scene, or only within a specific layer
Within all the graphics overlays in the view or only within a specific graphics overlay
Returning only the topmost item or all the items at that location
Returning the feature, graphic, or other item at that location, or by returning pop-ups
for pop-up-enabled layers
Identify methods are asynchronous, so that the UI thread of your application is not blocked
waiting for results. This is especially important when working with data which resides on a
server, as results do not return immediately. The results of an identify take into account:
Note:
If time-based filtering is being used (a time extent has been set on the displaying map or
scene view), identify will only return features that are within the time extent set on the geo
view.
The sections below show you how to identify different items in the map or scene in different
ways, but these approaches can be combined to provide general identify functionality if
required.