Styling Applied to All Selected Features Instead of One #2996
Unanswered
syed-mustaqhim
asked this question in
Q&A
Replies: 1 comment
-
You should be able to use style expressions to achieve this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Library: react-native-mapbox-gl
Version:
"@rnmapbox/maps": "10.0.0-beta.47"
Description:
When using the
ShapeSourceN
component with thecurrentSelectedFeature
function, the intended behavior is to apply a different style to the currently selected feature. However, the issue is that the styling is applied to all selected features instead of just the currently selected one.Steps to Reproduce:
shape
prop takes an array ofselectedFeatures
. Pass the features of required typeCode:
Expected:
Actual Behaviour:
Understandable why the styling gets applied to all. But I'm looking for a solution to apply a certain style to one feature among the many features. I have run through the docs real quick, but may be I am missing something?
Any inputs or suggestions are appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions