AnsweredAssumed Answered

JS API 4.0 - How to call a script within a popup template

Question asked by kevinhaeni on Sep 13, 2016

Hi, I'm using the JavaScript API 4.0 and Angular2 and would like to achieve the following:

 

- When opening the popup / popupTemplate of a featureLayer, I would like to consume a webservice and get additional information of the selected feature.

So far, I used a custom action and displayed the result in a sidebar. But I would prefer to show the information within the popup templates content and load them without having to click the action button first.

 

Is there any solution for that?

Outcomes