Closed Xinayder closed 4 years ago
Hey @RockyTV , what is your usecase? Does it have to be highly interactive?
Unfortunately that is part of the implementation on Android :(
If you can live with something less interactive you should look into PointAnnotation
or SymbolLayer
instead.
@ferdicus I just want something that can be customized and can listen to tap/click events. PointAnnotation
would be ideal but it doesn't support interaction. I haven't tried SymbolLayer
yet; does it require a GeoJSON
shape source?
anyone found a way around this?
Interested if anyone have a solution. Same problem on Android.
V10 "@rnmapbox/maps": "10.0.0-beta.62",
Describe the bug When moving the map with a
MarkerView
being displayed, the marker will change its position instead of staying at its coordinates.To Reproduce Add a
MarkerView
with a marker and drag the map.Example:
Expected behavior The marker shouldn't move when you're dragging the map. The same does not occur with
PointAnnotation
.Screenshots video
Versions (please complete the following information):
Additional context I had a similar issue that markers would move when I moved the map in LeafletJS, turns out it was related to the marker's icon anchors; setting them to the default value when using the default icon fixed the issue and the markers wouldn't move when the map was dragged.
I used
scrcpy
to share my phone screen to my PC, and this issue happens on the phone as well, it's not a visual defect that occurs withscrcpy
.