Maps: Markers moving into clusters
Environment details
maps-compose: 2.11.4
Steps to reproduce
I added a simple project to this repo where the issue can be seen.
In this sample project I am creating a list of pins and storing it in a state, along with the info of a selected pin. The selected pins show an image different than normal pins. When the user clicks a pin the state updates and it will be selected, and the camera will move to it. Clicking another pin will deselect it and select the new pin.
The issue seems to happen when a pin is too close to a cluster and is selected/deselected. The pin becomes selected or deselected and the image is changed, but when the map updates there is an animation of the old image from the point where it was displayed into the cluster, leaving the new image in the correct place. This doesn't seem to happen anymore if we zoom in and the pin is no longer very close to the cluster.
(here is a gif also shown on the readme that displays what happens)

Please let me know if any more info is necessary about this issue.
If you would like to upvote the priority of this issue, please comment below or react with :+1: so we can see what is popular when we triage.
@joaocaseiro Thank you for opening this issue. 🙏 Please check out these other resources that might help you get to a resolution in the meantime:
- Check the issue tracker - bugs and feature requests for Google Maps Platform APIs and SDKs
- Open a support case - Get 1:1 support in Cloud Console.
- Discord - chat with other developers
-
StackOverflow - use the
google-mapstag
This is an automated message, feel free to ignore.
@wangela @kikoso Is there an ETA for a fix? Or can provide a workaround? We have a lot of clustered data on our map, so this issue happens all the time and is really annoying 😕
I see the same type of issue in the normal maps-utils-ktx too.