Hello.
Any ideas to add functionality when users click on a feature, they are redirected to a url that is defined in one of the fields of the feature attributes.
Thank you.
Solved! Go to Solution.
Lefteris,
You can add a link to the popup in the WebMap in AGOL. Other than that you would have to create a custom widget that adds a click event to the FeatureLayer and defines the field to use for the url.
Thanks. I was looking for a url redirect when you click on a feature, not a popup. Very similar of what you created on the flex. So, for js, an off-panel widget which starts up and listens when the app initiates is the way to go.
Lefteris,
Yep that is the way to go.