question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android: draggable PointAnnotation moves slightly while tapping on it

See original GitHub issue

Describe the bug Point Annotation should be selected/deselected while tapping on it. However, it triggers the dragging events and position shifts slightly which is very annoying.

To Reproduce Just use the official example: ShowPointAnnotation.js make the Point Annotation draggable.

<MapboxGL.PointAnnotation
            draggable={true}
            key={id}
            id={id}
            coordinate={coordinate}
            title={title}>
            <View style={styles.annotationContainer} />
            <MapboxGL.Callout title="This is a sample with image" />
</MapboxGL.PointAnnotation>

Expected behavior Point Annotation shouldn’t move while tapping on it and no dragging event should be triggered.

Versions (please complete the following information):

  • Platform: Android
  • Device: any android device
  • Emulator/ Simulator: no
  • OS: Android 10
  • react-native-mapbox-gl Version 8.0.0
  • React Native Version 0.62.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
gokugencommented, Apr 2, 2021

Face the same issue, does someone find a solution ?

0reactions
nstelecommented, May 6, 2021

@tobrun is there any workaround or solution to avoid this issue on Android?

Read more comments on GitHub >

github_iconTop Results From Across the Web

draggable PointAnnotation moves slightly while tapping on it ...
Point Annotation should be selected/deselected while tapping on it. However, it triggers the dragging events and position shifts slightly which ...
Read more >
pointannotation is not working in android - Stack Overflow
I am using react-native-mapbox-gl library for map and trying to render draggable marker. Following ...
Read more >
rnmapbox/Lobby - Gitter
I was wondering if we would be able to implement draggable layers by placing transparent draggable annotations above them and having them sync...
Read more >
How to display Location and Routes with CoreLocation ...
Learn how to get a user's location, create annotations and display it on the map, search for points of interest in your area,...
Read more >
How to Make a Draggable Music Knob in Jetpack Compose
In this video you will learn how you can create a music knob composable that you can rotate using drag gestures.⭐ Get certificates...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found