mapbox / mapbox/mapbox-gl-js

Issue with query rendered features and some models

Open
#13,426 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :lady_beetle:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

I have come across an issue where query rendered features is only returning a feature when the mouse is over certain parts of a model (I don't think this happens for every model but some that I am using)

I have an example of it here - https://jsbin.com/pupokoqaga/edit?html,output

I am not entirely sure if the issue I am encountering is down the model I am using or a Mapbox issue, but it would be great to get some insight on if it is the model's issue, what needs to be changed so it works correctly.

The model can be accessed from here if needed - https://model-repo-488fcbb8-6cc3-4249-9acf-ea68bbdda2ee.s3.eu-west-2.amazonaws.com/grandstand.glb

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked JSBin reproduction and inspect how queryRenderedFeatures behaves when the pointer moves across the supplied grandstand.glb model. Compare the model-specific behavior with other models and determine whether the inconsistency is caused by the model or Mapbox GL JS. Done means the cause is established and the required follow-up is clearly identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
computer-graphics, frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.