Hi Community,
At the moment, I am developing a custom widget for Experience Builder. Basically, the widget takes 3 different layers from the map and performs an intersection analysis between them in order to obtain how many points are inside of each polygon and how many polygons contain a point, according to the selection of the user through radio buttons. After that, the user can also print the results as a CSV file with the button at the bottom. (Image 1)
Image1. UI Widget
All the code is working good and the widget makes what it supposes to do. But suddenly everything stops working and I received a message from Chrome (Image 2) and it says that the browser is out of memory. I already did what Crhome suggests like: cleaning cookies, uninstall chrome extensions, reinstalling Chrome, etc. But I don't find the solution. I have other Experiences with other custom widgets and they work good, the problem is just with this widget. I am working with Experience Builder V 1.14 release date 20.03.2024.
Image 2. Chrome message
I will appreciate your help or any comment from someone that has experienced something similar. It would be very helpfull for me. I am pretty new in the widget development topic.
Thanks,
Diego
Solved! Go to Solution.
Chrome is a memory hog at the best of times and Experience Builder is as well. The geographic calculations you describe are also memory intensive. I can't say for certain where the problem is without knowing your code and your data, but here are my suggestions.
Don't run any calculations until the user has made all their choices and limit the number of times the user can run this tool before needing to reload.
Chrome is a memory hog at the best of times and Experience Builder is as well. The geographic calculations you describe are also memory intensive. I can't say for certain where the problem is without knowing your code and your data, but here are my suggestions.
Don't run any calculations until the user has made all their choices and limit the number of times the user can run this tool before needing to reload.
Hi Jeffrey,
Thank you very much for your answer and advices. I already fixed the problem, it was something in my code. But I will read more about the client-side quesry topic. Besides that, I am also trying to make my widget more simple and not so memory consuming. In terms of limiting the area, I thought about that and the analysis just run for the features contained into the map extent.
Once again, thank you.
Greetings,
Diego