mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

Can not get features by queryRenderedFeatures function on Model layer

Open linze99 opened this issue 2 years ago • 7 comments

mapbox-gl-js version: v3.0.0-beta.2 browser: Safari 16.6 (18615.3.12.11.2)

Steps to Trigger Behavior

1.add some gltf/glb model with method: AddModel 2.add a layer which type is "model" 3.add a mouse click event

### Link to Demonstration

Expected Behavior

return features under mouse point;

Actual Behavior

return an empty array

linze99 avatar Sep 18 '23 09:09 linze99

Model layer is still an experimental feature (under development) and we plan to implement this soon. queryRenderedFeatures support has not yet been implemented in GL JS. It is partly supported only in Mobile SDKs, at the moment.

astojilj avatar Dec 04 '23 11:12 astojilj

This is under work now.

astojilj avatar Jan 22 '24 14:01 astojilj

it's in 3.3.0? I only see 'height' property... any sample/docs?

bertt avatar Apr 11 '24 10:04 bertt