[openstreetmap/openstreetmap-website] Map Data checkbox: perhaps use toggle slider instead (PR #5009)
Roman Deev
notifications at github.com
Fri Mar 14 00:15:29 UTC 2025
deevroman left a comment (openstreetmap/openstreetmap-website#5009)
This PR brought two problems:
1. When moving the map, a white flash occurs and all objects on the map are redrawn:
https://github.com/user-attachments/assets/3c87c769-174c-4513-a5be-115eb9517bb8
2. Rendering slowed down. What used to occupy ~400ms now occupies ~1.3s. Hiding a data layer was previously performed on ~100ms, now ~1.5s (!)
Both problems arise due to the fact that before that the redrawing of the map was performed only once, after the completion of the removal/adding of objects to the SVG-element of the map.
I can agree that the first appearance of the data layer looks beautiful. But the work with the map worsened.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5009#issuecomment-2722980833
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5009/c2722980833 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250313/02970c44/attachment.htm>
More information about the rails-dev
mailing list