looping through map graphics get undefined warning.

416
1
04-28-2014 03:26 PM
MattTenold
New Contributor III
I am working on separating out graphics attributes, and I am getting the undefined on attributes warning when I use the code
var alleventsgraphics = self._map.graphics.graphics.attributes

I can see the 15 graphics listed under self._map.graphics.graphics and then have attributes but why can't i get the attributes to come over when I say var alleventsgraphics = self._map.graphics.graphics.attributes?

[ATTACH=CONFIG]33431[/ATTACH]
0 Kudos
1 Reply
LoriGonzalez
New Contributor III
Try to specify which graphic in the array you need. 

var alleventsgraphics = self._map.graphics.graphics[3].attributes
0 Kudos