I have around 1 million(might increase in future) objects in an array(GeoJSON) which looks like this:
[{
"id": 4472,
"type": "Feature",
"properties": {
"id": 1,
"key1": 123,
"key2": 123.8484211,
"key3": 123.1713833,
// around 15 more keys
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[-104.33, 34],
[-104.33, 33.67],
[-104.67, 33.67],
[-104.67, 34],
[-104.33, 34]
]
]
}
}]
I'm using Mapbox in an Angular project, I want to plot polygon on a map, there are repeated polygons in the array.
Since I can't use GeoJSON directly since it crashes the browser, I have been uploading(0.5 million data for now) it to MTS and then using it as vector. From zoom level 0-6 it drops some tile and I also get a warning
Features were dropped from bakeries layer in 29 tile(s) to enforce tile size limits. Affected zoom levels are: 0,1,2,3,4,5,6. Affected tiles and their required layer_sizes include: ...
How can I fix this? Is there any other solutions, libraries or SaaS product I should look at?
I have been through several documentation, GeoJSON for large dataset, tileset, filter, zoom level affected how to fix it FAQ in Mapbox If there is a completely new solution that I should go forward with please do let me know.