I am looking for some direction on creating a custom widget in Experience Builder. I have worked with Application Builder for years but never ventured into the ExB arena. About 6-7 years ago I created a Load Map widget based on the City of Garland, Texas ChangeWebMap Widget. I have kept the widget updated; however, now must move on to ExB to continue its use.
I believe I can start with:
- ESRI List or Fixed Panel widget
- Add code to query the enterprise portal for a list of Maps, map IDs, name, etc. from a particular group
- Use the data to dynamically populate the list or add cards to the fixed panel
- Add code to change the application/Map webmap ID and refresh on click of a list item or card
I am able to accomplish this using the application ID and webmap ID as URL parameters but I am struggling find how to programmatically achieve this in ExB.
Can anyone point me to where in ExB and/or examples to:
- query a portal for the maps in a designated group
- dynamical add items to a list or fixed panel
- change or set the wedmap ID on on the app and refresh
If we only had a few maps they could just be added to the app map references and toggle them from the application using available widgets. However, we currently have 10-15 maps we want to have available and this number is going increase. We also have periodic maps that need to be quickly added and removed.
Any help would be appreciated. I feel as though I am facing a vertical learning curve at the moment as ExB custom widgets are a totally different beast.