You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On iOS, try to drag one PointAnnotation, if you press and try to drag all the map start to scrolling and the PointAnnotation will not move.
To make PointAnnotation moving you need to LongPress on it (at least 1 second), than if you drag it, it start moving.
Secondly, all PointAnnotations appear to be at a level below the LineLayer, they should be on top level as happens on Android.
Expected behavior
Expected behavior is the same that works running this code on Android.
When you try to drag one PointAnnotation it starts moving immediately after pressing it and dragging, you don't need to long press on it.
Secondly, here on Android, all PointAnnotations appear to be at the top level, over the LineLayer.
Notes / preliminary analysis
Note that this code works as expected on Android but not on iOS.
smartmedev
changed the title
[Bug]: iOS PointAnnotation need to "longpress" before you can start dragging it on the map, on Android you can drag immediately after Press
[Bug]: iOS PointAnnotation need to "longpress" before you can start dragging it on the map, on Android you can drag immediately after Press/Tap
Mar 15, 2024
Not sure if it's related to this but I'm also experiencing on iOS only that a RasterSource map is not interactive. On Android the same map is interactive but on iOS it freezes. Any other non-raster sources render and are interactive on both Android and iOS but not the raster source. The map loads fine but just not interactive.
Version 10.1.19
React Native 0.72.6
Confirmed working in version 10.0.15. Seems the 10.1+ upgrade that dropped mapbox-gl might have broken something?
Mapbox Implementation
Mapbox
Mapbox Version
default
React Native Version
0.70.8
Platform
iOS
@rnmapbox/maps
version10.1.15
Standalone component to reproduce
Observed behavior and steps to reproduce
On iOS, try to drag one PointAnnotation, if you press and try to drag all the map start to scrolling and the PointAnnotation will not move.
To make PointAnnotation moving you need to LongPress on it (at least 1 second), than if you drag it, it start moving.
Secondly, all PointAnnotations appear to be at a level below the LineLayer, they should be on top level as happens on Android.
Expected behavior
Expected behavior is the same that works running this code on Android.
When you try to drag one PointAnnotation it starts moving immediately after pressing it and dragging, you don't need to long press on it.
Secondly, here on Android, all PointAnnotations appear to be at the top level, over the LineLayer.
Notes / preliminary analysis
Note that this code works as expected on Android but not on iOS.
Additional links and references
Video that show how it works correctly on Android: drag start immediately after press and PointAnnotation above LineLayer.
https://github.com/rnmapbox/maps/assets/107206974/dbb9a22e-75db-458b-83fa-d4c5e0f7532a
On iOS you need to longpress before you can start dragging and PointAnnotation are below LineLayer
The text was updated successfully, but these errors were encountered: