mapbox / mapbox/mapbox-gl-js

identify location on an extrusion on click

Open
#9,885 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature :green_apple:
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
Snímek obrazovky 2020-07-21 v 12 02 33
Snímek obrazovky 2020-07-21 v 12 02 43

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.