Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add setFeatureState / getFeatureState / removeFeatureState #2942

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Gnative
Copy link
Contributor

@Gnative Gnative commented Jul 5, 2023

Description

Adds setFeatureState / getFeatureState / removeFeatureState to Mapbox v10 for example:

this._map.setFeatureState('customShapeSource', 'customSourceLayer', 'square', { active: true } );

Added working Example for iOS

I'll admit couldn't quite get the Android to work as my knowledge of how arguments are passed around is limited. I'm still working on this, working code is included in this draft pull request, maybe someone would be able to help on this.

There is a discussion on this #2761 as well as a closed issue #997

Checklist

  • I have tested this on a device/simulator for each compatible OS
  • I updated the documentation with running yarn generate in the root folder
  • I added/updated a sample - if a new feature was implemented (/example)

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.

None yet

1 participant