I'm working with the dev edition of Experience Builder, and was wondering if anybody could point me in the right direction regarding where to start if I wanted to configure a custom analysis type for the Near Me widget beyond what is included in the stock version. I'm trying to port functionality over from a WebEx app but widgets seems to be a lot more complicated in ExB as they are no longer just a single file and appear to have a bunch of components now.
There are two types of analysis I need:
1) Specify the number of closest features rather than only showing the nearest feature (i.e. nearest 5 results to be shown, rather than just the nearest)
2) Show all results associated with the closest address point (e.g. show all the building permits for the address closest to the dropped pin).
I've made a copy of the source code for the near-me widget under client/your-extensions, but I seem to break the widget any time I try to modify any lines of code as the widget UI tends to just disappear and becomes replaced by an error message from the JS console. Troubleshooting has been kind of hard as there doesn't seem to be much documentation for the actual source code and how the different .tsx files interact, and the comments inside the code don't really help me understand how the widgets is structured overall.
If someone could point me in the right direction in regards to even just which .tsx files I should be looking to modify, and possibly which functions, that would be greatly appreciated.