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 ?
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-popup/final/js/main.js
Hope this helps to get you started!
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.