Paint clicked features on Android #773
Unanswered
renatojobal
asked this question in
Q&A
Replies: 1 comment
-
Also maybe is a better way to achieve this instead of creating a new layer, but I am not sure how to do that. |
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
-
I am trying to paint the clicked features on the map. Something like this but when clicked and on Android: https://docs.mapbox.com/mapbox-gl-js/example/hover-styles/
My approach was the following:
The code called when
onMapClickListener
is the following:But apparently, the polygons are cut, or somehow




queryRenderedFeatures
is returning incompleted polygons:It looks like mapbox is cutting the polygons with the border of a bigger invisible square:

Platform information:
Additional context
I am not sure if this is a bug with
queryRenderedFeatures
or if I am missing something.Thank you for reading this.
Beta Was this translation helpful? Give feedback.
All reactions