Skip to content

feat(web): pass VectorSource promoteId to mapbox-gl - #4403

Merged
mfazekas merged 1 commit into
mainfrom
feat/web-vectorsource-promote-id
Oct 25, 2026
Merged

mfazekas merged 1 commit into
mainfrom
feat/web-vectorsource-promote-id

Conversation

@mfazekas

Copy link
Copy Markdown
Contributor

Description

Web follow-up to #4396. The web VectorSource now passes promoteId to mapbox-gl's vector source promoteId. The web ShapeSource already did.

Checklist

  • I've read CONTRIBUTING.md
  • I updated the doc/other generated code with running yarn generate in the root folder
  • I have tested the new feature on /example app.
    • In V11 mode/ios
    • In New Architecture mode/ios
    • In V11 mode/android
    • In New Architecture mode/android
  • I added/updated a sample - if a new feature was implemented (/example)

Screenshot OR Video

Tested in the web example with mapbox-gl 3.15:

  1. FillRasterLayer/CustomVectorSource, with a temporary promoteId="box": queryRenderedFeatures returns the box value as the feature id. Without the prop, the ids are the tile's own ids.
  2. V10/FeatureState (ShapeSource promoteId="name"): setFeatureState with id west turns the west polygon red.

@mfazekas
mfazekas merged commit 731d9e7 into main Oct 25, 2026
10 checks passed
@mfazekas
mfazekas deleted the feat/web-vectorsource-promote-id branch October 25, 2026 21:01

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant