Select to view content in your preferred language

Add Zoom To Data Action

356
0
03-07-2022 03:28 PM
MichaelWen_Timmons
New Contributor III

I'm developing a custom widget and one of the feature I want to implement is to allow users to 'zoom and pan to' a feature in a feature layer after clicking on a button that correspond to the feature name. 

This is similar to what the List widget is doing with Data Action. 

According to the SDK documentation I should declare the 'pan to' and 'zoom to' data actions in the manifest.json and create a class that extends AbstractDataAction. However I didn't find any example that specifies the target widget and the zoom/pan to actions. Can someone guide me to a few good examples of how to direct Data Actions in a custom widget?

0 Kudos
0 Replies