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

891
0
09-13-2016 11:41 AM
KevinHaeni
New Contributor III

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?

Tags (1)
0 Replies