Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am little bit confuse in between Identify task and attribute info task.

According to research, both are displaying attribute information

  1. Interestingly if one point contains multiple attribute then Identify task shows multiple records while Attribute window display only single record

  2. Identify task displays the information if record is hidden in certain cases while Attribute window not.

  3. If you are using Dynamic layers in ArcGIS Java Script API then you cannot use Attribute window option while identify task works for both (i.e. feature layer and Dynamic layer)

So what exactly difference between them? & which is recommended?

Any help will be great… thanks in advance : )

share|improve this question
    
What is the "attribute info task"? Can you post some code to reproduce what you're seeing? –  Derek Swingley Dec 27 '12 at 15:36
    
@DerekSwingley thanks for your reply..I will post the example for better understanding on JS Fiddle. –  Sunil Dec 28 '12 at 6:03
add comment

1 Answer 1

up vote 3 down vote accepted

The identify task displays data that is queried using a geometry. It only returns information from layers in the map service that you specify in the identify parameters.

What you are calling the "attribute info task" is more than likely the info popup that displays the attribute information of a feature layer. That is why it does not work on a dynamic layer, but the identify does.

So to answer your observations

  1. That is correct because identify will send the geometry back to the server along with a list of layers in the map service that you would like to query for data. The attribute window only displays data from the feature that you click on.

  2. See answer 1, the identify task queries the layers you specify, not what is visible.

  3. Yes, because the feature layer already has the attribute data, the dynamic service does not.

As far was what is recommend it depends on what you are trying to do. Who can use the idenfity task to only identify information about a specific layer or just for the visible layers but that needs to be done in the identify parameters of the task. If you just want map tips and are using feature layers then use the attribute window.

share|improve this answer
    
Perfect explanation : ) I appreciate the explanation..I will check this and let you know soon.. thanks a lot : ) –  Sunil Dec 28 '12 at 3:49
    
thanks a lot : ) –  Sunil Jan 2 '13 at 10:43
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.