identify location on an extrusion on click
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
**mapbox-gl-js version**: 1.11.1
**browser**: Chrome
Create extruded polygon, then add listener on click, using queryRenderedFeatures. But when I click forexample corner of roof of high building, the gps I get is from map point I clicked, not from the base of that building. The marker moves to the point that I click

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported click on a 3D extruded polygon in Chrome using mapbox-gl-js 1.11.1, a click listener, and queryRenderedFeatures. Trace how the clicked map point and the extrusion are identified, then establish the expected coordinate for a roof-corner click and verify the marker uses that coordinate.
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
- 32/100