Graphics click and identify

461
3
09-24-2010 07:01 AM
DavidMaltby
New Contributor
I have a web map http://txpub.usgs.gov/watershedreview/watershedreview.html where I put graphics on the map and I just incorporated an identlfy task.  I am having an issue where clicking on a graphic gives me the graphic attributes but when I do an identify (dblClick) I get the attributes from the last graphic that was clicked.  I am doing a map.graphics.clear();  If I identify first, I get the attributes from my features.  When I then click on a graphic, I get the attributes from the graphic.  If I go back to identify, I get the attributes from the last graphic clicked.
Thanks for any help provided.
0 Kudos
3 Replies
LorenMueller
Occasional Contributor
Please post some code.  That sounds like a logic error, and might be in your event handling.
Loren
0 Kudos
DavidMaltby
New Contributor
Please post some code.  That sounds like a logic error, and might be in your event handling.
Loren

Code is too large to post.  Right-mouse click to view source code.
0 Kudos
DavidMaltby
New Contributor
I answered my own question.  Move the map.infoWindow.setContent(dijit.byId("tabs").domNode); and
        map.infoWindow.setTitle("Identify Results"); from your start functions into your identify function.
0 Kudos