[openstreetmap/openstreetmap-website] "layeradd layerremove" event handlers dramatically slow down Map data layer rendering (Issue #5466)
Anton Khorev
notifications at github.com
Sun Jan 5 06:18:08 UTC 2025
> and to prove their uselessness
You can see that the `_osm_location` cookie is updated. If you remove some event listeners, the cookie won't be updated on these events.
If you do `map.off("layeradd layerremove")` then after changing layers, going to some non-map-view page and going back to the map you'll see that your choice of layers wasn't remembered.
The problem is that those layer events happen probably more often than originally anticipated when the data layer is enabled.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5466#issuecomment-2571517168
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/5466/2571517168 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250104/bbe53895/attachment.htm>
More information about the rails-dev
mailing list