{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/2402","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-js","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/2402/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/2402/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/2402/events","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/2402","id":146165325,"number":2402,"title":"queryRenderedFeatures and layer visibility","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},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/labels/enhancement","name":"enhancement","color":"0052cc"},{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/labels/needs%20discussion","name":"needs discussion","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-06T02:15:41Z","updated_at":"2016-04-06T16:53:57Z","closed_at":null,"body":"Does `queryRenderedFeatures` return features if their layer's `visibility` is `none`?\r\nShould it return features if that's the case?"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/comments/206462697","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/2402#issuecomment-206462697","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/2402","id":206462697,"user":{"login":"mcwhittemore","id":1551510,"avatar_url":"https://avatars.githubusercontent.com/u/1551510?v=3","gravatar_id":"","url":"https://api.github.com/users/mcwhittemore","html_url":"https://github.com/mcwhittemore","followers_url":"https://api.github.com/users/mcwhittemore/followers","following_url":"https://api.github.com/users/mcwhittemore/following{/other_user}","gists_url":"https://api.github.com/users/mcwhittemore/gists{/gist_id}","starred_url":"https://api.github.com/users/mcwhittemore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcwhittemore/subscriptions","organizations_url":"https://api.github.com/users/mcwhittemore/orgs","repos_url":"https://api.github.com/users/mcwhittemore/repos","events_url":"https://api.github.com/users/mcwhittemore/events{/privacy}","received_events_url":"https://api.github.com/users/mcwhittemore/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T16:53:57Z","updated_at":"2016-04-06T16:53:57Z","body":"`queryRenderedFeatures` reminds me a lot of ray-picking and would thus not return things that don't make up what is seen by the user. It sounds like 'querySourceFeatures' should have a geospatial param.\r\n\r\nWe talked about this a bit on https://github.com/mapbox/mapbox-gl-js/issues/2106"}}