I noticed GCV was performing poorly with large datasets (e.g. 15,000 items). To address this, I implemented a handful of fixes:
Move methods for processing geometry, parsing coordinates, and assigning feature layer colors to take place server-side.
Implement pagination and infinite scrolling for the Gallery component, so that 100 items are shown and loaded at a time.
For the Map component, compile each data item into one GeoJSON map source and layer instead of each item having its own source and layer (which was highly inefficient).
The application has no issue loading a dataset of this size now.
I noticed GCV was performing poorly with large datasets (e.g. 15,000 items). To address this, I implemented a handful of fixes:
Gallery
component, so that 100 items are shown and loaded at a time.Map
component, compile each data item into one GeoJSON map source and layer instead of each item having its own source and layer (which was highly inefficient).The application has no issue loading a dataset of this size now.