I am currently using Mapbox GL JS and pull multiple GeoJson files from the style.json file. Each file in about 10MB and takes too long to load. Is there a way to compress the files and uncompressed them in Mapbox?
The best way is probably converting the geojson to mbtiles. Mbtiles are more compact overall due to their protobuf format, and faster on initial load since only the visible part is requested. I'd recommend Tippecanoe for that. If you need the entire files in memory (e.g. for
querySourceFeatures), you might convert the geojson to topojson, or gzip the files.