I have successfully inserted a link in a popup window, like this. Now how can I call a Feature action (Export to CSV, View in Attribute Table, etc.) on a click on that link?
Thanks!
Solved! Go to Solution.
Benedek,
It is as simple as calling code like this from your function:
var feature = this.mapManager.map.infoWindow.getSelectedFeature();
var fs = {features:[feature]};
var csvAct = FeatureActionManager.getInstance().getActionsByActionName("ExportToCSV")[0];
csvAct.onExecute(fs);
Benedek,
It is as simple as calling code like this from your function:
var feature = this.mapManager.map.infoWindow.getSelectedFeature();
var fs = {features:[feature]};
var csvAct = FeatureActionManager.getInstance().getActionsByActionName("ExportToCSV")[0];
csvAct.onExecute(fs);
Thank you, Robert!