{"action":"opened","issue":{"number":498,"created_at":"2011-10-11T16:22:14Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Looks like in C++ we need to add a remove_style() method and in python add the ability to clear the list:\r\n\r\nIn python you can't delete all layers:\r\n{{{\r\n>>> from mapnik import *\r\n>>> l = Layer('name')\r\n>>> l.styles.append('a')\r\n>>> l.styles = []\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\nAttributeError: can't set attribute\r\n}}}\r\n\r\nbut you can remove layers by index (which you seemingly can't in C++):\r\n{{{\r\n>>> del l.styles[0]\r\n>>> l.styles[0]\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\nIndexError: Index out of range\r\n>>> len(l.styles)\r\n0\r\n}}}","comments":0,"title":"Ability to delete/remove styles on layers","updated_at":"2011-10-11T16:22:14Z","url":"https://api.github.com/repos/artemp/mapnik/issues/498","id":1877772,"assignee":null,"milestone":{"number":2,"created_at":"2011-10-11T15:50:19Z","due_on":null,"title":"Future","creator":{"avatar_url":"https://secure.gravatar.com/avatar/941f68386168a8a6b60f2529a7830af7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/artemp","id":59056,"login":"artemp"},"url":"https://api.github.com/repos/artemp/mapnik/milestones/2","open_issues":89,"closed_issues":5,"description":"Tickets without a proper milestone: either because they are unsorted and unreviewed or because developers do not see capacity to work on them before a planned release.\r\n\r\nThis group should be periodically reviewed and plucked by developers to be included in other milestones if feasible to work on.","state":"open"},"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/941f68386168a8a6b60f2529a7830af7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/artemp","id":59056,"login":"artemp"},"html_url":"https://github.com/artemp/mapnik/issues/498","labels":[{"name":"Core_Library","url":"https://api.github.com/repos/artemp/mapnik/labels/Core_Library","color":"FFFFFF"}],"state":"open"},"legacy":{"number":498,"action":"opened","issue":1877772}}