{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1932","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-js","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1932/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1932/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1932/events","html_url":"https://github.com/mapbox/mapbox-gl-js/pull/1932","id":126723273,"number":1932,"title":"Add data driven styling for circle-color","user":{"login":"lucaswoj","id":281306,"avatar_url":"https://avatars.githubusercontent.com/u/281306?v=3","gravatar_id":"","url":"https://api.github.com/users/lucaswoj","html_url":"https://github.com/lucaswoj","followers_url":"https://api.github.com/users/lucaswoj/followers","following_url":"https://api.github.com/users/lucaswoj/following{/other_user}","gists_url":"https://api.github.com/users/lucaswoj/gists{/gist_id}","starred_url":"https://api.github.com/users/lucaswoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucaswoj/subscriptions","organizations_url":"https://api.github.com/users/lucaswoj/orgs","repos_url":"https://api.github.com/users/lucaswoj/repos","events_url":"https://api.github.com/users/lucaswoj/events{/privacy}","received_events_url":"https://api.github.com/users/lucaswoj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-01-14T19:01:15Z","updated_at":"2016-04-11T21:24:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/pulls/1932","html_url":"https://github.com/mapbox/mapbox-gl-js/pull/1932","diff_url":"https://github.com/mapbox/mapbox-gl-js/pull/1932.diff","patch_url":"https://github.com/mapbox/mapbox-gl-js/pull/1932.patch"},"body":"This branch adds data-driven styling for `circle-color`.\r\n\r\n![screen shot 2016-04-06 at 11 55 07 am](https://cloud.githubusercontent.com/assets/281306/14329033/6f39e2c0-fbee-11e5-8bdd-a2bb03bc0dc4.png)\r\n\r\n```js\r\nmap.addLayer({\r\n    \"id\": \"random-points\",\r\n    \"type\": \"circle\",\r\n    \"source\": \"geojson-random-points\",\r\n    \"paint\": {\r\n        \"circle-radius\": 5,\r\n        \"circle-opacity\": 0.5,\r\n        \"circle-color\": {\r\n            stops: [[0, 'red'], [100, 'violet']],\r\n            property: 'mapbox'\r\n        }\r\n    }\r\n});\r\n\r\nmap.addLayer({\r\n    \"id\": \"random-points-outline\",\r\n    \"ref\": \"random-points\",\r\n    \"paint\": {\r\n        \"circle-radius\": 10,\r\n        \"circle-color\": {\r\n            stops: [[0, 'white'], [100, 'black']],\r\n            property: 'mapbox'\r\n        }\r\n    }\r\n}, 'random-points');\r\n```\r\n\r\n# Follow Up Tasks\r\n\r\n - merge mapbox-gl-style-spec branch\r\n - merge mapbox-gl-function branch\r\n - add data-driven styling for all paint properties (except for fill layers, blocked on #1606)\r\n - refactor `Bucket` class into smaller units\r\n - try to eke out a better score for the buffer benchmark "},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/comments/208569089","html_url":"https://github.com/mapbox/mapbox-gl-js/pull/1932#issuecomment-208569089","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1932","id":208569089,"user":{"login":"ansis","id":1421652,"avatar_url":"https://avatars.githubusercontent.com/u/1421652?v=3","gravatar_id":"","url":"https://api.github.com/users/ansis","html_url":"https://github.com/ansis","followers_url":"https://api.github.com/users/ansis/followers","following_url":"https://api.github.com/users/ansis/following{/other_user}","gists_url":"https://api.github.com/users/ansis/gists{/gist_id}","starred_url":"https://api.github.com/users/ansis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansis/subscriptions","organizations_url":"https://api.github.com/users/ansis/orgs","repos_url":"https://api.github.com/users/ansis/repos","events_url":"https://api.github.com/users/ansis/events{/privacy}","received_events_url":"https://api.github.com/users/ansis/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T21:24:53Z","updated_at":"2016-04-11T21:24:53Z","body":"> FPS (retina)\r\n> ...\r\n> Buffer\r\n> ...\r\n\r\n👍 "}}