{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/2230","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-js","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/2230/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/2230/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/2230/events","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/2230","id":139404319,"number":2230,"title":"Rename `layer` option to `layers` for featuresIn/At requests","user":{"login":"tristen","id":61150,"avatar_url":"https://avatars.githubusercontent.com/u/61150?v=3","gravatar_id":"","url":"https://api.github.com/users/tristen","html_url":"https://github.com/tristen","followers_url":"https://api.github.com/users/tristen/followers","following_url":"https://api.github.com/users/tristen/following{/other_user}","gists_url":"https://api.github.com/users/tristen/gists{/gist_id}","starred_url":"https://api.github.com/users/tristen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tristen/subscriptions","organizations_url":"https://api.github.com/users/tristen/orgs","repos_url":"https://api.github.com/users/tristen/repos","events_url":"https://api.github.com/users/tristen/events{/privacy}","received_events_url":"https://api.github.com/users/tristen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-08T21:53:28Z","updated_at":"2016-03-14T21:16:20Z","closed_at":null,"body":"I've seen this come up a couple times where someone has typed `layers` instead of `layer` in the property options for `featuresAt` or `featuresIn` requests. If the typo is not caught the effect is elusive (_appears_ to sort of work as the layer you want is captured in the request but buggy as it captures others)\r\n\r\nPropose:\r\n\r\n- `layer` continues to accept a single string value or an array of strings\r\n- `layers` accepts an array of strings"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/comments/196524802","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/2230#issuecomment-196524802","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/2230","id":196524802,"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":"2016-03-14T21:16:20Z","updated_at":"2016-03-14T21:16:20Z","body":"Let's support an array-valued `layers` property only, as part of #2052 / #2224, which are already breaking changes.\r\n\r\ncc @ansis "}}