mapbox / mapbox/mapbox-gl-js

CSS Zoom property make click in uncluster point don't work

Open
#12,174 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

**mapbox-gl-js version**: v2.9.2

**browser**: Chrome v 104.0.5112.81 64 bits

### Steps to Trigger Behavior
in the .css ->
add into html and body the property zoom.

I verified that the click is a little further down and to the right of the point where it wants to be clicked.

![mapbox bug](https://user-images.githubusercontent.com/30815072/185490905-05297ff2-6503-42ba-8a06-a13947d91f5c.png)

### Link to Demonstration
https://jsfiddle.net/topand/18kav6rb/1/
remember: insert your token

### Expected Behavior
-> open popup

### Actual Behavior
-> dont open popup

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 issue from the linked JSFiddle after adding CSS zoom to the html and body elements, using Chrome and a valid Mapbox token. Trace the click handling and coordinate mapping for an unclustered point; done means clicking the point opens its popup at the expected location despite the CSS zoom.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.