It would be useful if raster layers were included in featuresAt. Especially for raster layers with sources with limited bounds.
I see here that this is a noop: https://github.com/mapbox/mapbox-gl-js/blob/2a2aec44a39e11e73bdf663258bd6d52b83775f5/js/source/raster_tile_source.js#L98
Looks to already be working.

@scothis in that example, the raster layers are hacked in to show up across the whole map. Ideally the raster layer only appears in the popup if it exists where user clicked.
At this time we don't return raster sources or features from map.query*Features at all. We should do this.
This will be dependent on https://github.com/mapbox/mapbox-gl-js/issues/3186: querying searches for features in a tile, but since we shoehorn features into a tile, querying a point on a visible raster layer may search for points past a tile (the source cache's tile)'s "extent."
The equivalent of the noop mentioned in https://github.com/mapbox/mapbox-gl-js/issues/1404#issue-98309860 is now query_features.js#L12: raster layers don't have feature indices. querySourceFeatures also only queries geojson and vector data.
This was brought up in https://github.com/mapbox/mapbox-gl-js/issues/3745. Indeed for something like a canvas-based raster layer it would be helpful to return an [x,y] coordinate mapped back to the original raster data.
This could be particularly useful for raster layers like the terrain rgb where users could query the pixel values and calculate elevation at a point based on the raster data 馃挱
Any luck on this? This would very useful.
This could be particularly useful for raster layers like the terrain rgb where users could query the pixel values and calculate elevation at a point based on the raster data 馃挱
Exactly the use case I have. Layer with rgb data that I want to be able to query with a click event point.
Any updates on this?
any updates or solution ?
any updates or solution ?
Oh gosh.. This would be so helpful especially for querying via RGB values.. fingers crossed on this one
Any news here? I'd like to query RGB values of underlying raster pixel too.
Most helpful comment
This could be particularly useful for raster layers like the terrain rgb where users could query the pixel values and calculate elevation at a point based on the raster data 馃挱