{"action":"opened","issue":{"url":"https://api.github.com/repos/ghybs/Leaflet.MarkerCluster.LayerSupport/issues/1","repository_url":"https://api.github.com/repos/ghybs/Leaflet.MarkerCluster.LayerSupport","labels_url":"https://api.github.com/repos/ghybs/Leaflet.MarkerCluster.LayerSupport/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ghybs/Leaflet.MarkerCluster.LayerSupport/issues/1/comments","events_url":"https://api.github.com/repos/ghybs/Leaflet.MarkerCluster.LayerSupport/issues/1/events","html_url":"https://github.com/ghybs/Leaflet.MarkerCluster.LayerSupport/issues/1","id":149521685,"number":1,"title":"Uncluster markers when there is layers control on the map","user":{"login":"wsenjer","id":132250,"avatar_url":"https://avatars.githubusercontent.com/u/132250?v=3","gravatar_id":"","url":"https://api.github.com/users/wsenjer","html_url":"https://github.com/wsenjer","followers_url":"https://api.github.com/users/wsenjer/followers","following_url":"https://api.github.com/users/wsenjer/following{/other_user}","gists_url":"https://api.github.com/users/wsenjer/gists{/gist_id}","starred_url":"https://api.github.com/users/wsenjer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wsenjer/subscriptions","organizations_url":"https://api.github.com/users/wsenjer/orgs","repos_url":"https://api.github.com/users/wsenjer/repos","events_url":"https://api.github.com/users/wsenjer/events{/privacy}","received_events_url":"https://api.github.com/users/wsenjer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-19T17:05:14Z","updated_at":"2016-04-19T17:05:14Z","closed_at":null,"body":"Hello, \r\nThank you for the great plugin. \r\nI'm building a website where I'm implementing a checkbox to enable/disable clustering of the map.\r\n\r\nThe code works when there is no `Layers Control ` attached to the map.\r\n\r\n```\r\n\t$('input:checkbox[name=clustering]').click(function() {\r\n\t\tif($(this).is(':checked')) { //Show markers as a cluster.\r\n                 // Remove the markers.\r\n\t\t\t\t map.removeLayer(geojson_markers);\r\n                 // Add the markers to the cluster group.\r\n\t\t\t\t geojson_markers.addTo(markercluster);\r\n                 // Add the cluster group to the map.\r\n\t\t\t     map.addLayer(window.markercluster); \r\n\t\t} else { //Show markers as a indiviuals.\r\n\t\t\tmarkercluster.clearLayers(); // Remove the layers of the cluster\r\n\t\t\tgeojson_markers.addTo(map); // Add the individual markers group to the map\r\n\t\t}\r\n\t});\r\n```\r\n\r\nThe problem is that line `geojson_markers.addTo(map);` has no effect on the map. Even though the clustering part is working. "}}