AnsweredAssumed Answered

only one attribute returned for a selected feature graphic

Question asked by JJhill on Jun 15, 2018
Latest reply on Jun 25, 2018 by JJhill

My console log for a selected feature popup.watch is only showing one attribute when there should be all of them returned. Is it something simple I am overlooking? 

 

var stuffLayer = new MapImageLayer({
          url: "https://",
          sublayers: [{
                id: 2,
                title: "Stuff",
                visible: true,
                outFields: ["*"],
                popupTemplate: {
                  title: "Stuff",
                  content: createClickContentType
                }
                //minScale: 100000
            },
            {
                id: 4,
                title: "Stuff 2",
                visible: false,
                //minScale: 100000,
                //legendEnabled: false
            },
            {
              id: 3,
              title: "Stuff 3",
              visible: false,
              outFields: ["*"],
              popupTemplate: {
                title: "Stuff 3",
                content: createClickContentType
              },
              //maxScale: 100000
          },
          {
              id: 1,
              title: "Metadata",
              visible: false,
              popupTemplate: {
                title: "Metadata",
                content: createClickContentPro
              },
          }   

          ]
      });

mapView.map.add(stuffLayer);

          mapView.popup.watch(["selectedFeature"], function(g){

             console.log(g);

          });

Outcomes