{"action":"created","issue":{"url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3125","labels_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3125/labels{/name}","comments_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3125/comments","events_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3125/events","html_url":"https://github.com/Leaflet/Leaflet/issues/3125","id":53903206,"number":3125,"title":"Cannot add the same layer to multiple maps","user":{"login":"rwwagner90","id":2640861,"avatar_url":"https://avatars.githubusercontent.com/u/2640861?v=3","gravatar_id":"","url":"https://api.github.com/users/rwwagner90","html_url":"https://github.com/rwwagner90","followers_url":"https://api.github.com/users/rwwagner90/followers","following_url":"https://api.github.com/users/rwwagner90/following{/other_user}","gists_url":"https://api.github.com/users/rwwagner90/gists{/gist_id}","starred_url":"https://api.github.com/users/rwwagner90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwwagner90/subscriptions","organizations_url":"https://api.github.com/users/rwwagner90/orgs","repos_url":"https://api.github.com/users/rwwagner90/repos","events_url":"https://api.github.com/users/rwwagner90/events{/privacy}","received_events_url":"https://api.github.com/users/rwwagner90/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-09T19:10:42Z","updated_at":"2015-01-09T19:18:35Z","closed_at":"2015-01-09T19:18:35Z","body":"I am using Leaflet.draw to draw shapes on my maps. I have two maps, one large main map, and one small filter map. I need to sync the shapes between them, so I have been using the draw events and copying the layer to the other map, but once the layer is copied, the old layer seems to be messed up. It would appear Leaflet does not support having the same layer in multiple maps. If I switch it from a layer to geoJson instead, it somewhat works. "},"comment":{"url":"https://api.github.com/repos/Leaflet/Leaflet/issues/comments/69383902","html_url":"https://github.com/Leaflet/Leaflet/issues/3125#issuecomment-69383902","issue_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3125","id":69383902,"user":{"login":"mourner","id":25395,"avatar_url":"https://avatars.githubusercontent.com/u/25395?v=3","gravatar_id":"","url":"https://api.github.com/users/mourner","html_url":"https://github.com/mourner","followers_url":"https://api.github.com/users/mourner/followers","following_url":"https://api.github.com/users/mourner/following{/other_user}","gists_url":"https://api.github.com/users/mourner/gists{/gist_id}","starred_url":"https://api.github.com/users/mourner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mourner/subscriptions","organizations_url":"https://api.github.com/users/mourner/orgs","repos_url":"https://api.github.com/users/mourner/repos","events_url":"https://api.github.com/users/mourner/events{/privacy}","received_events_url":"https://api.github.com/users/mourner/received_events","type":"User","site_admin":false},"created_at":"2015-01-09T19:18:35Z","updated_at":"2015-01-09T19:18:35Z","body":"Yes, unfortunately making Leaflet support adding the same layer instance to multiple maps would require too much complexity in the code. So it's not worth the hassle, especially as there are workarounds for cases that need this."}}