Hi all,
I'm trying to hit the properties of the sublayers in a map image service using the "allSublayers" property of that service. It works fine in the console in Chrome:
I can hit each of these items and access the properties of each:
But when I try to hit the same in code, using the same syntax, but targeting a new MapLayer object that's being added to the map, I can only see up to the array of sublayers itself, and not access any of the records in that array, nor the properties of any of those records:
Looking for the items array
the returned items array
looking for the first record in that array
"undefined"
Any ideas? Is this some bug or something?
Thanks!
Solved! Go to Solution.
OK
Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.