[openstreetmap/openstreetmap-website] Disabling asynchronous Map data layer rendering (PR #5877)

Nenad Vujicic notifications at github.com
Wed Apr 2 22:51:44 UTC 2025


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/c2773904815 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250402/576f827a/attachment.htm>


More information about the rails-dev mailing list