AnsweredAssumed Answered

Capture attribute values from a WebMap

Question asked by lalver1 on Nov 8, 2017
Latest reply on Nov 8, 2017 by lalver1

I would like to capture attribute values from a WebMap into a variable, similar to #How can I capture attribute values in a variable? but in my case I am using a WebMap, and neither solutions from the tagged post seem to work (infoWindow is not available and event.graphic seems to be undefined). It also seems that there are no layers associated with the WebMap, so I don't know how to access the data on the layers. 

I really appreciate any any help.



], function(MapView, WebMap) {

var webmap = new WebMap({
portalItem: {
id: "7faf8d05df114f8082411414382c69d3"

var view = new MapView({
map: webmap,
container: "viewMap"
console.log("Num WebMap Layers: "+webmap.layers.length);

view.on("click", function(event) {