> For example, the currently selected object on the map. It is not clear how to 
> separate changes to Map Data objects and changes to the selected element. It 
> is necessary to track changes in the active element, otherwise at least the 
> Edit button will break.

`addObject`/`removeObject` in `leaflet.map.js` could fire some event for active 
object change. The listener that calls `updateLinks` could listen to that event.

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

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

Reply via email to