How to change color of Layers? #509
Unanswered
Ankur-Magan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to implement Indoor Stadium map, where I want to highlight the section on a specific condition when map loads.
I have added the fill-color for specific states such
selected
hovered
oravailable
but how can I tell map to colour layer as per specific case:Note :
hovered
is not applicable for mobileSample Style JSON :
mobile-style.json
Current Map Screen Shot
Sample Code :
I am currently using Shape Source to highlight particular section when user presses the map, by getting the feature from queryRenderedAtPoint
Beta Was this translation helpful? Give feedback.
All reactions