nenad-vujicic left a comment (openstreetmap/openstreetmap-website#5877)

I also succeeded to reproduce flickering by switching between e.g. point 
[A](https://www.openstreetmap.org/#map=18/59.924360/30.304869&layers=ND) and 
point [B](https://www.openstreetmap.org/#map=18/59.925492/30.305593&layers=ND), 
although I have high-performance machine (by e.g. pressing Back and Forward).

Wouldn't be better approach to replace 
[clearLayers](https://github.com/openstreetmap/openstreetmap-website/blob/2075eb8329e5e011e8acaa90ade8229f6c9ea88b/app/assets/javascripts/index/layers/data.js#L112)
 + [rebuilding data 
layer](https://github.com/openstreetmap/openstreetmap-website/blob/2075eb8329e5e011e8acaa90ade8229f6c9ea88b/app/assets/javascripts/index/layers/data.js#L80)
 (which is actually causing the flickering, if I understood it well) with 
`remove out-of-viewport features and add new-features` logic?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5877#issuecomment-2773904815
You are receiving this because you are subscribed to this thread.

Message ID: 
<openstreetmap/openstreetmap-website/pull/5877/c2773904...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to