{"action":"created","issue":{"url":"https://api.github.com/repos/openlayers/openlayers/issues/6615","repository_url":"https://api.github.com/repos/openlayers/openlayers","labels_url":"https://api.github.com/repos/openlayers/openlayers/issues/6615/labels{/name}","comments_url":"https://api.github.com/repos/openlayers/openlayers/issues/6615/comments","events_url":"https://api.github.com/repos/openlayers/openlayers/issues/6615/events","html_url":"https://github.com/openlayers/openlayers/issues/6615","id":215743827,"number":6615,"title":"OpenLayers: How do I get all the features at pixel.","user":{"login":"staplesj","id":26226414,"avatar_url":"https://avatars1.githubusercontent.com/u/26226414?v=3","gravatar_id":"","url":"https://api.github.com/users/staplesj","html_url":"https://github.com/staplesj","followers_url":"https://api.github.com/users/staplesj/followers","following_url":"https://api.github.com/users/staplesj/following{/other_user}","gists_url":"https://api.github.com/users/staplesj/gists{/gist_id}","starred_url":"https://api.github.com/users/staplesj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/staplesj/subscriptions","organizations_url":"https://api.github.com/users/staplesj/orgs","repos_url":"https://api.github.com/users/staplesj/repos","events_url":"https://api.github.com/users/staplesj/events{/privacy}","received_events_url":"https://api.github.com/users/staplesj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-21T13:44:24Z","updated_at":"2017-03-21T13:54:00Z","closed_at":"2017-03-21T13:54:00Z","body":"I can't seem to find any proper documentation on this.\r\n\r\nI am currently using:\r\n\r\n        const feature = <ol.Feature>this.olMap.forEachFeatureAtPixel(pixel, (feature, layer) => feature);\r\n\r\nbut this only finds one of the features. In our case, one or more assets may be stacked at the same point.\r\n\r\nI see there is an option called forEachLayerAtPixel, but no clear instruction on how to use this.\r\n\r\nI am using Typescript.\r\n\r\nHow can I obtain a list of ALL the assets at a pixel?"},"comment":{"url":"https://api.github.com/repos/openlayers/openlayers/issues/comments/288084750","html_url":"https://github.com/openlayers/openlayers/issues/6615#issuecomment-288084750","issue_url":"https://api.github.com/repos/openlayers/openlayers/issues/6615","id":288084750,"user":{"login":"ahocevar","id":211514,"avatar_url":"https://avatars2.githubusercontent.com/u/211514?v=3","gravatar_id":"","url":"https://api.github.com/users/ahocevar","html_url":"https://github.com/ahocevar","followers_url":"https://api.github.com/users/ahocevar/followers","following_url":"https://api.github.com/users/ahocevar/following{/other_user}","gists_url":"https://api.github.com/users/ahocevar/gists{/gist_id}","starred_url":"https://api.github.com/users/ahocevar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahocevar/subscriptions","organizations_url":"https://api.github.com/users/ahocevar/orgs","repos_url":"https://api.github.com/users/ahocevar/repos","events_url":"https://api.github.com/users/ahocevar/events{/privacy}","received_events_url":"https://api.github.com/users/ahocevar/received_events","type":"User","site_admin":false},"created_at":"2017-03-21T13:54:00Z","updated_at":"2017-03-21T13:54:00Z","body":"Do not return the feature. Returning a truthy value will stop the iteration of `forEachFeatureAtPixel`.\r\n\r\nInstead, handle your features inside the `forEachLayerAtPixel` function."}}
{"actor":{"display_login":"ahocevar"}}