Javascript Popup Directions Action

149
1
03-06-2024 12:22 PM
vijaybadugu
Occasional Contributor II

I  have seen a sample with various actions that can be added to the pop up. have a requirement to add direction button along with zoom in button in a popup . 

Could you please help us ?

 

0 Kudos
1 Reply
LaurenBoyd
Esri Contributor

Hi @vijaybadugu -

There is an example of a zoom out action in the Popup.actions property example snippets that you could modify to be a zoom in action: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#actions 

And I created an example "Get directions" action for a previous User Conference demo. You can find the source code for that here: https://github.com/lboyd93/User-Conference-Presentations/blob/main/2023/improving-ux-popups/update-p... 

Hope this helps to get you started!

Lauren