{"action":"created","issue":{"url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3926","labels_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3926/labels{/name}","comments_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3926/comments","events_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3926/events","html_url":"https://github.com/Leaflet/Leaflet/issues/3926","id":110973977,"number":3926,"title":"Canvas does not refresh","user":{"login":"Brutusn","id":6348907,"avatar_url":"https://avatars.githubusercontent.com/u/6348907?v=3","gravatar_id":"","url":"https://api.github.com/users/Brutusn","html_url":"https://github.com/Brutusn","followers_url":"https://api.github.com/users/Brutusn/followers","following_url":"https://api.github.com/users/Brutusn/following{/other_user}","gists_url":"https://api.github.com/users/Brutusn/gists{/gist_id}","starred_url":"https://api.github.com/users/Brutusn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brutusn/subscriptions","organizations_url":"https://api.github.com/users/Brutusn/orgs","repos_url":"https://api.github.com/users/Brutusn/repos","events_url":"https://api.github.com/users/Brutusn/events{/privacy}","received_events_url":"https://api.github.com/users/Brutusn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Leaflet/Leaflet/labels/bug","name":"bug","color":"EBC3C3"},{"url":"https://api.github.com/repos/Leaflet/Leaflet/labels/needs%20more%20info","name":"needs more info","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-10-12T13:22:29Z","updated_at":"2015-10-12T14:44:19Z","closed_at":null,"body":"I have multiple layers with GeoJSON objects (either points or polygons). I can switch between those layers, but the old layer doesn't disappear. I am using the latest dev version of leaflet (Leaflet 1.0.0-beta.2 (a7f72fd)). However it did work with version: Leaflet 1.0.0-beta.2 (8f47372). Also some other plugins (marker cluster and draw) have similar issues. \r\n\r\nIs this an issue on my side, or on the side of Leaflet? See below for screenshots and a description.\r\n\r\nDefault render is correct.\r\n![image](https://cloud.githubusercontent.com/assets/6348907/10428617/113c9270-70f3-11e5-8ce4-b247b5f4ce18.png)\r\n\r\nThen I switch to a layer without markers but with \"buildings\", the objects not in the cluster marker are still on the page (though behind the buildings).\r\n![image](https://cloud.githubusercontent.com/assets/6348907/10428643/37b609b8-70f3-11e5-9860-29e889aaef65.png)\r\n\r\nShown in this image, switched back to the first layer, the orange buildings should have been gone.\r\n![image](https://cloud.githubusercontent.com/assets/6348907/10428666/5d24e0a2-70f3-11e5-9669-df26714521d9.png)\r\n\r\nThey are after you move the map.\r\n![image](https://cloud.githubusercontent.com/assets/6348907/10428693/89c750fe-70f3-11e5-80c3-4d056edfb38d.png)\r\n\r\nSame applies to the on hover areas of the cluster marker. The polygons should have been removed on mouse out, they aren't, only after a move on the map.\r\n![image](https://cloud.githubusercontent.com/assets/6348907/10428712/9fb1f072-70f3-11e5-8816-d00ff0b24f7f.png)\r\n\r\nIt happens also with the leaflet.draw plugin when I try to remove a shape. It keeps being displayed until you move the map."},"comment":{"url":"https://api.github.com/repos/Leaflet/Leaflet/issues/comments/147418869","html_url":"https://github.com/Leaflet/Leaflet/issues/3926#issuecomment-147418869","issue_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3926","id":147418869,"user":{"login":"Brutusn","id":6348907,"avatar_url":"https://avatars.githubusercontent.com/u/6348907?v=3","gravatar_id":"","url":"https://api.github.com/users/Brutusn","html_url":"https://github.com/Brutusn","followers_url":"https://api.github.com/users/Brutusn/followers","following_url":"https://api.github.com/users/Brutusn/following{/other_user}","gists_url":"https://api.github.com/users/Brutusn/gists{/gist_id}","starred_url":"https://api.github.com/users/Brutusn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brutusn/subscriptions","organizations_url":"https://api.github.com/users/Brutusn/orgs","repos_url":"https://api.github.com/users/Brutusn/repos","events_url":"https://api.github.com/users/Brutusn/events{/privacy}","received_events_url":"https://api.github.com/users/Brutusn/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T14:44:19Z","updated_at":"2015-10-12T14:44:19Z","body":"Something like this: https://playground-leaflet.rhcloud.com/vak/1/edit?html,output ? this adds a polygon and after about 2 seconds it tries to remove."}}