{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1011","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1011/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1011/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1011/events","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/1011","id":58286151,"number":1011,"title":"use turf for hit testing in feature_tree.js","user":{"login":"jfirebaugh","id":98601,"avatar_url":"https://avatars.githubusercontent.com/u/98601?v=3","gravatar_id":"","url":"https://api.github.com/users/jfirebaugh","html_url":"https://github.com/jfirebaugh","followers_url":"https://api.github.com/users/jfirebaugh/followers","following_url":"https://api.github.com/users/jfirebaugh/following{/other_user}","gists_url":"https://api.github.com/users/jfirebaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/jfirebaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfirebaugh/subscriptions","organizations_url":"https://api.github.com/users/jfirebaugh/orgs","repos_url":"https://api.github.com/users/jfirebaugh/repos","events_url":"https://api.github.com/users/jfirebaugh/events{/privacy}","received_events_url":"https://api.github.com/users/jfirebaugh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/milestones/5","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/milestones/5/labels","id":682066,"number":5,"title":"future","description":"","creator":{"login":"mourner","id":25395,"avatar_url":"https://avatars.githubusercontent.com/u/25395?v=3","gravatar_id":"","url":"https://api.github.com/users/mourner","html_url":"https://github.com/mourner","followers_url":"https://api.github.com/users/mourner/followers","following_url":"https://api.github.com/users/mourner/following{/other_user}","gists_url":"https://api.github.com/users/mourner/gists{/gist_id}","starred_url":"https://api.github.com/users/mourner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mourner/subscriptions","organizations_url":"https://api.github.com/users/mourner/orgs","repos_url":"https://api.github.com/users/mourner/repos","events_url":"https://api.github.com/users/mourner/events{/privacy}","received_events_url":"https://api.github.com/users/mourner/received_events","type":"User","site_admin":false},"open_issues":42,"closed_issues":61,"state":"open","created_at":"2014-06-05T11:12:03Z","updated_at":"2015-02-24T04:23:19Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-02-19T23:16:44Z","updated_at":"2015-02-24T04:23:21Z","closed_at":null,"body":"At least [this code](https://github.com/mapbox/mapbox-gl-js/blob/d4203769183141a98d510117efac90aaae506394/js/data/feature_tree.js#L68-L127), and possibly all of feature_tree.js, should be replaced with modules / a module from turf.\r\n\r\ncc @morganherlocker "},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/comments/75697382","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/1011#issuecomment-75697382","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1011","id":75697382,"user":{"login":"jfirebaugh","id":98601,"avatar_url":"https://avatars.githubusercontent.com/u/98601?v=3","gravatar_id":"","url":"https://api.github.com/users/jfirebaugh","html_url":"https://github.com/jfirebaugh","followers_url":"https://api.github.com/users/jfirebaugh/followers","following_url":"https://api.github.com/users/jfirebaugh/following{/other_user}","gists_url":"https://api.github.com/users/jfirebaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/jfirebaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfirebaugh/subscriptions","organizations_url":"https://api.github.com/users/jfirebaugh/orgs","repos_url":"https://api.github.com/users/jfirebaugh/repos","events_url":"https://api.github.com/users/jfirebaugh/events{/privacy}","received_events_url":"https://api.github.com/users/jfirebaugh/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T04:23:21Z","updated_at":"2015-02-24T04:23:21Z","body":"`turf.inside(point, turf.buffer(feature))` is the obvious way to do this currently, but that pulls in JSTS which we definitely don't want in gl-js."}}