{"action":"created","issue":{"url":"https://api.github.com/repos/MyGUI/mygui/issues/75","labels_url":"https://api.github.com/repos/MyGUI/mygui/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/MyGUI/mygui/issues/75/comments","events_url":"https://api.github.com/repos/MyGUI/mygui/issues/75/events","html_url":"https://github.com/MyGUI/mygui/issues/75","id":87425894,"number":75,"title":"Public LayerManager::deleteLayer function?","user":{"login":"Germanunkol","id":1830593,"avatar_url":"https://avatars.githubusercontent.com/u/1830593?v=3","gravatar_id":"","url":"https://api.github.com/users/Germanunkol","html_url":"https://github.com/Germanunkol","followers_url":"https://api.github.com/users/Germanunkol/followers","following_url":"https://api.github.com/users/Germanunkol/following{/other_user}","gists_url":"https://api.github.com/users/Germanunkol/gists{/gist_id}","starred_url":"https://api.github.com/users/Germanunkol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Germanunkol/subscriptions","organizations_url":"https://api.github.com/users/Germanunkol/orgs","repos_url":"https://api.github.com/users/Germanunkol/repos","events_url":"https://api.github.com/users/Germanunkol/events{/privacy}","received_events_url":"https://api.github.com/users/Germanunkol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-11T17:40:25Z","updated_at":"2015-06-12T17:08:26Z","closed_at":null,"body":"Hi,\r\n\r\nRecently, you added the createLayerAt function (thanks again for that!).\r\n\r\nIs there a way to delete such a layer again?\r\nThere's the LayerManager::delete, but it's private. And calling:\r\n\r\n    delete mLayer;\r\n\r\nthrows an error if the layer is not empty.\r\n\r\nHow do I remove a (dynamically added) layer?"},"comment":{"url":"https://api.github.com/repos/MyGUI/mygui/issues/comments/111559632","html_url":"https://github.com/MyGUI/mygui/issues/75#issuecomment-111559632","issue_url":"https://api.github.com/repos/MyGUI/mygui/issues/75","id":111559632,"user":{"login":"Germanunkol","id":1830593,"avatar_url":"https://avatars.githubusercontent.com/u/1830593?v=3","gravatar_id":"","url":"https://api.github.com/users/Germanunkol","html_url":"https://github.com/Germanunkol","followers_url":"https://api.github.com/users/Germanunkol/followers","following_url":"https://api.github.com/users/Germanunkol/following{/other_user}","gists_url":"https://api.github.com/users/Germanunkol/gists{/gist_id}","starred_url":"https://api.github.com/users/Germanunkol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Germanunkol/subscriptions","organizations_url":"https://api.github.com/users/Germanunkol/orgs","repos_url":"https://api.github.com/users/Germanunkol/repos","events_url":"https://api.github.com/users/Germanunkol/events{/privacy}","received_events_url":"https://api.github.com/users/Germanunkol/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T17:08:26Z","updated_at":"2015-06-12T17:08:26Z","body":"Alternatively, how do I empty the layer so that I can then remove it calling \"delete mLayer\" ?"}}