In our application, I'm mapping the path of a moving object by drawing a line to trace its path as I receive position updates from that object. My issue is that, after getting a few thousand points(positions) in the line, Chrome crashes.
In my current implementation, I'm just grabbing that specific line from the line collection and then pushing a new point to the end of the positions array.
Is there another way I should be doing this? I also considered/tested adding numerous lines to the collection instead of adding a large number of points. That didn't seem to help much.
I noticed in another thread that there was a suggestion to use a point geometry to render a large number of points. Should I try the same thing with a polyline geometry?