mapbox / mapbox/mapbox-gl-js

Error with styles using "feature-state" and "within" case

Open
#13,283 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

**mapbox-gl-js version**: 3.6.0

**browser**: Chrome Windows 128.0.6613.138

### Steps to Trigger Behavior

1. Hover point
2. Unhover point

### Link to Demonstration

https://jsfiddle.net/k97f8mpb/

### Expected Behavior
When hovered point gets larger and gets darker color. When hover ends point gets smaller and color changes to original.

### Actual Behavior
When hover ends point gets smaller and color changes to original.

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 by reproducing the hover and unhover behavior in the linked JSFiddle using mapbox-gl-js 3.6.0 in Chrome on Windows. Trace the style handling for feature-state and within, then verify that the point returns to its original size and color after hover ends.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.