The discussion revolves around increasing the maximum search results for groups in JSON. AquaL1te has created a map that queries https://forum.tzm.community/g.json?filter=chapter, but is hitting the maximum search results. pfaffman suggests implementing infinite scroll in a theme component, but AquaL1te clarifies that no custom theme component is used and that the JSON output is paged. After investigating the API, AquaL1te concludes that there is no option to increase the limit per page and will need to create a custom solution, possibly using a Python script to retrieve all results by paginating through the API.
I have created a map for my groups called chapters:
These values are queried from https://forum.tzm.community/g.json?filter=chapter, but it seems that the max search results have been hit. How and where I can increase this? This is important because otherwise my map will not show new chapters, or others might disappear due to their alphabetic order.
You mean in your theme component? They are paged, so I think you’ll need to contrive to have your theme component support infinite scroll. (Which I cannot help with.)
I don’t use a custom theme component for this, there is no paging of the results there:
But indeed, in the JSON output it states 35 results are shown, but in total there are 43 and it shows a page in the JSON output https://forum.tzm.community/g.json?filter=chapter&page=1. From your answer, I guess I cannot configure it that there should be 100 results shown per page? If not, then I have to make the retrieval of the JSON smarter. Not simply a wget, but maybe a Python script that continues to the next page when the total amount of entries have not been collected yet.