{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/3122","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-js","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/3122/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/3122/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/3122/events","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/3122","id":174440473,"number":3122,"title":"Use ray picking to query extrusions in \"queryRenderedFeatures\"","user":{"login":"1ec5","id":1231218,"avatar_url":"https://avatars.githubusercontent.com/u/1231218?v=3","gravatar_id":"","url":"https://api.github.com/users/1ec5","html_url":"https://github.com/1ec5","followers_url":"https://api.github.com/users/1ec5/followers","following_url":"https://api.github.com/users/1ec5/following{/other_user}","gists_url":"https://api.github.com/users/1ec5/gists{/gist_id}","starred_url":"https://api.github.com/users/1ec5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1ec5/subscriptions","organizations_url":"https://api.github.com/users/1ec5/orgs","repos_url":"https://api.github.com/users/1ec5/repos","events_url":"https://api.github.com/users/1ec5/events{/privacy}","received_events_url":"https://api.github.com/users/1ec5/received_events","type":"User","site_admin":false},"labels":[{"id":31015438,"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/labels/enhancement","name":"enhancement","color":"0052cc","default":true}],"state":"open","locked":false,"assignee":{"login":"lbud","id":3170312,"avatar_url":"https://avatars.githubusercontent.com/u/3170312?v=3","gravatar_id":"","url":"https://api.github.com/users/lbud","html_url":"https://github.com/lbud","followers_url":"https://api.github.com/users/lbud/followers","following_url":"https://api.github.com/users/lbud/following{/other_user}","gists_url":"https://api.github.com/users/lbud/gists{/gist_id}","starred_url":"https://api.github.com/users/lbud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbud/subscriptions","organizations_url":"https://api.github.com/users/lbud/orgs","repos_url":"https://api.github.com/users/lbud/repos","events_url":"https://api.github.com/users/lbud/events{/privacy}","received_events_url":"https://api.github.com/users/lbud/received_events","type":"User","site_admin":false},"assignees":[{"login":"lbud","id":3170312,"avatar_url":"https://avatars.githubusercontent.com/u/3170312?v=3","gravatar_id":"","url":"https://api.github.com/users/lbud","html_url":"https://github.com/lbud","followers_url":"https://api.github.com/users/lbud/followers","following_url":"https://api.github.com/users/lbud/following{/other_user}","gists_url":"https://api.github.com/users/lbud/gists{/gist_id}","starred_url":"https://api.github.com/users/lbud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbud/subscriptions","organizations_url":"https://api.github.com/users/lbud/orgs","repos_url":"https://api.github.com/users/lbud/repos","events_url":"https://api.github.com/users/lbud/events{/privacy}","received_events_url":"https://api.github.com/users/lbud/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-09-01T05:35:52Z","updated_at":"2016-10-28T21:21:18Z","closed_at":null,"body":"With 3D polygon extrusions (mapbox/mapbox-gl-style-spec#456) on a tilted map, feature eventing will continue to return the same results regardless of any extrusion. That is, even if the query point visually falls upon a building wall, the results will reflect whatever would happen to be rendered at ground level had the building wall been absent (which may be the footprint of a different building). Ideally, querying a point on screen would return the building (due to any of its walls), the building across the street, and so on until reaching the ground.\r\n\r\nTypically, interactive 3D environments implement _ray picking_. Ray picking would probably be more straightforward to implement if GL JS would position each component of the map in a 3D coordinate space. For better or worse, GL JS instead treats the entire map as a flat surface, modulo any transforms. So I don’t know that we’ll be able to take advantage of [usual approaches to ray picking](http://schabby.de/picking-opengl-ray-tracing/).\r\n\r\n/cc @lbud @peterqliu @ansis"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/comments/257031672","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/3122#issuecomment-257031672","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/3122","id":257031672,"user":{"login":"holmesal","id":1147390,"avatar_url":"https://avatars.githubusercontent.com/u/1147390?v=3","gravatar_id":"","url":"https://api.github.com/users/holmesal","html_url":"https://github.com/holmesal","followers_url":"https://api.github.com/users/holmesal/followers","following_url":"https://api.github.com/users/holmesal/following{/other_user}","gists_url":"https://api.github.com/users/holmesal/gists{/gist_id}","starred_url":"https://api.github.com/users/holmesal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holmesal/subscriptions","organizations_url":"https://api.github.com/users/holmesal/orgs","repos_url":"https://api.github.com/users/holmesal/repos","events_url":"https://api.github.com/users/holmesal/events{/privacy}","received_events_url":"https://api.github.com/users/holmesal/received_events","type":"User","site_admin":false},"created_at":"2016-10-28T21:21:18Z","updated_at":"2016-10-28T21:21:18Z","body":"+1 - I'm running into this issue while trying to create hoverable extrusions. \r\n\r\nUsers generally hover over the extruded body, but `queryRenderedFeatures` only returns features when the cursor is inside the \"footprint\" polygon.\r\n\r\nThis doesn't return the desired feature:\r\n![image](https://cloud.githubusercontent.com/assets/1147390/19822531/d19821f4-9d18-11e6-8c4c-96eb05f162c8.png)\r\n\r\nThis does return the desired feature (pink arrow == mouse position):\r\n![image](https://cloud.githubusercontent.com/assets/1147390/19822674/916f0a9c-9d19-11e6-8dcb-0e6bff0b4fce.png)\r\n\r\n"}}
{"actor":{"display_login":"holmesal"}}