AnsweredAssumed Answered

popupTemplate when loading WebMap

Question asked by MichelleJean on Mar 7, 2017
Latest reply on Mar 22, 2017 by MichelleJean

Is it possible to use the Popup Template when loading a WebMap ?

The Popup Template sample code is built in the context of loading a feature layer, but not an entire WebMap.

 

The sample code when loading a feature layer is 

var featureLayer = new FeatureLayer({
  url: "..."
  popupTemplate: {
     mediaInfos: [{ ... }]
  }
})

but how do you use the popupTemplate when loading a WebMap with feature & tile layers ?

var webmap = new WebMap({
portalItem: {id: "..."}
})

My WebApp is available on JS BIN.

 

Michelle.

Outcomes