-
I have a GeoJSON file of approximately 100 MB containing 260,000 polygons. When I load this file as a data source and add its layer to the map, the application experiences significant lag, and rendering takes a long time. Sometimes, it even crashes with an OutOfMemory error. Is there a way to speed up the layer addition process and prevent this error? style.addSource(GeoJsonSource(MapConstant.ID_GEOJSON_SOURCE, geojson))
val layer = LineLayer(MapConstant.ID_GEOJSON_LAYER, MapConstant.ID_GEOJSON_SOURCE)
style.addLayer(layer) |
Beta Was this translation helpful? Give feedback.
Answered by
boldtrn
Mar 12, 2025
Replies: 1 comment 2 replies
-
I would consider serving the data tiled instead of all at once. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
louwers
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would consider serving the data tiled instead of all at once.