AnsweredAssumed Answered

Generate html from popupInfo

Question asked by gavinharriss on Aug 2, 2018
Latest reply on Aug 8, 2018 by gavinharriss

In 4.8 is it possible to use a PopupTemplate, PopupViewModel or similar and manually add the popupInfo from a layer, along with a desired feature and generate the raw html for use outside of the map?

 

We have a application where were using the layer.popupInfo.description and manually populating the attributes to generate our html, but we'd like to go one step further and also apply the rich formatting that is available under layer.popupInfo.fieldInfos[].format.

 

Or perhaps there is an exposed method somewhere in the JS API that will allow us to apply the fieldInfos to an attribute value one at a time manually?

Outcomes