{"action":"created","issue":{"url":"https://api.github.com/repos/Leaflet/Leaflet.draw/issues/369","labels_url":"https://api.github.com/repos/Leaflet/Leaflet.draw/issues/369/labels{/name}","comments_url":"https://api.github.com/repos/Leaflet/Leaflet.draw/issues/369/comments","events_url":"https://api.github.com/repos/Leaflet/Leaflet.draw/issues/369/events","html_url":"https://github.com/Leaflet/Leaflet.draw/issues/369","id":58172241,"number":369,"title":"Dynamically remove controls with setDrawingOptions","user":{"login":"Calvein","id":243189,"avatar_url":"https://avatars.githubusercontent.com/u/243189?v=3","gravatar_id":"","url":"https://api.github.com/users/Calvein","html_url":"https://github.com/Calvein","followers_url":"https://api.github.com/users/Calvein/followers","following_url":"https://api.github.com/users/Calvein/following{/other_user}","gists_url":"https://api.github.com/users/Calvein/gists{/gist_id}","starred_url":"https://api.github.com/users/Calvein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Calvein/subscriptions","organizations_url":"https://api.github.com/users/Calvein/orgs","repos_url":"https://api.github.com/users/Calvein/repos","events_url":"https://api.github.com/users/Calvein/events{/privacy}","received_events_url":"https://api.github.com/users/Calvein/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-19T06:19:55Z","updated_at":"2015-06-30T01:22:46Z","closed_at":null,"body":"Hi,\r\n\r\nI'm changing the options set to `drawControl` dynamically and I noticed that passing `polyline: false` for instance, won't remove/hide the polyline control.\r\nIf it's normal, it should be in the doc imo.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/Leaflet/Leaflet.draw/issues/comments/116902435","html_url":"https://github.com/Leaflet/Leaflet.draw/issues/369#issuecomment-116902435","issue_url":"https://api.github.com/repos/Leaflet/Leaflet.draw/issues/369","id":116902435,"user":{"login":"olivierpichon","id":3260198,"avatar_url":"https://avatars.githubusercontent.com/u/3260198?v=3","gravatar_id":"","url":"https://api.github.com/users/olivierpichon","html_url":"https://github.com/olivierpichon","followers_url":"https://api.github.com/users/olivierpichon/followers","following_url":"https://api.github.com/users/olivierpichon/following{/other_user}","gists_url":"https://api.github.com/users/olivierpichon/gists{/gist_id}","starred_url":"https://api.github.com/users/olivierpichon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivierpichon/subscriptions","organizations_url":"https://api.github.com/users/olivierpichon/orgs","repos_url":"https://api.github.com/users/olivierpichon/repos","events_url":"https://api.github.com/users/olivierpichon/events{/privacy}","received_events_url":"https://api.github.com/users/olivierpichon/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T01:22:46Z","updated_at":"2015-06-30T01:22:46Z","body":"Same here :("}}