My goal is to incorporate real-time, web-socket event-based data onto my map.
Each time a new point is received, I need to either add it or update it on the map.
What would be the most effective approach?
A) One option is to create a FeatureCollection and set up a source and corresponding layer. When updating, modify the FeatureCollection and utilize setData();
B) Another possibility is to create a unique source and layer for each individual point. Then, when updating, simply adjust the specific source and use setData();
I personally have doubts regarding option B), as I question its efficiency. However, I am also uncertain about the performance of option A) (or perhaps I am looking at it from the wrong angle).