norfolkwebdev

Feature Layer Name undefined?

Discussion created by norfolkwebdev on Aug 3, 2012
Latest reply on May 23, 2014 by xupla
This may be something silly that I'm doing wrong, but my feature layer name keeps coming back as undefined.

console.log(featureLayer) produces this:
a ->
...
id: "graphicsLayer4"
..
name: "Fire Station"
..


console.log(featureLayer.id) produces "graphicsLayer4"
console.log(featureLayer.name) produces "undefined"

Any ideas what I'm doing wrong?

Outcomes