-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[google-maps] Draggable Marker Bug on Android, setOnMarkerDragEndListener is never called (none of the drag events are called), works well on iOS & Web #2296
Comments
This issue needs more information before it can be addressed. Please see the Contributing Guide for how to create a Sample App. Thanks! |
Hi There, Finally after a long investigation I found out what the problem really is and I worked around it. So one solution is to call disableClustering before you let users drag a marker or not to call enableClustering at all. In fact this issue is kinda related to this one => #1227 So the complete function becomes :
After this mod these dragging events fire like they're supposed to 👍 |
Bug Report
Plugin(s)
"@capacitor/google-maps": "^6.0.1"
Capacitor Version
Platform(s)
Android (on all tested devices).
Current Behavior
When dragging any draggable marker, the drag events are never called especially setOnMarkerDragEndListener which is the most useful.☺️
iOS & Web works perfectly as expected
When connecting an android device to my machine for debug purpose I can't see no errors in the console and it never gets in none of the drag events.
Expected Behavior
On iOS & Web platforms the marker is nicely dragged to a new spot then setOnMarkerDragEndListener is fired and helps with getting back marker's new latitude & longitude for instance.
Code Reproduction
Other Technical Details
Additional Context
The text was updated successfully, but these errors were encountered: