vts-browser-js icon indicating copy to clipboard operation
vts-browser-js copied to clipboard

Performance issue with adding geodata at high rates

Open skazemi opened this issue 5 years ago • 3 comments

Hi, I encounter performance issues with the map when adding/updating geodata at a high rate to the map using the following methods: 1-Adding geodata as a freelayer: In this case when the number of layers grows, map becomes very slow until out of memory occurs (probably caused by layers workers) 2-Rendering geodata with dynamic rendering (onCustomRender) without adding freelayer: in this case, onCustomRender slows down with an increasing number of items to be rendered. I wonder if there is a better way to do this? Thanks

skazemi avatar Jun 09 '20 08:06 skazemi

Unfortunately there are no other methods provided by API. You can try to extend existing rendering methods used by "CustomRender". For example make them render more points in one draw call.

davidmtech avatar Jun 16 '20 09:06 davidmtech

@davidmtech Thanks for your guidance. I tried to simplify paths to speedup onCustomRender. Is there a way to change free layer geodata and style properties without removing/adding the whole layer (partial updates)?

skazemi avatar Jul 08 '20 13:07 skazemi

I am wondering the same thing- is there a way to dynamically change the style object, once the freelayer has been created?

jrjdavidson avatar Jul 17 '20 01:07 jrjdavidson