Clusters do not reform after programmatic camera zoom via setCamera #4134
Unanswered
COSSART-FR
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
When clicking on a cluster to expand it (via
setCamerawithzoomLevelandcenterCoordinate), and then zooming out, the clusters do not reform properly. The issue appears to be related to the timing of region updates when programmatically changing the camera.Expected Behavior
After clicking a cluster to expand it and then zooming out, clusters should reform automatically based on the current zoom level and visible region.
Actual Behavior
After clicking a cluster to expand it, when zooming out, clusters do not reform. However, if the address is set manually via a menu (which also updates the camera), the clusters work correctly.
Steps to Reproduce
@rnmapbox/mapssetCamerawithzoomLevelandcenterCoordinate)Environment
@rnmapbox/mapsversion^10.2.90.77.3My code
We're using
react-native-clustererwith@rnmapbox/mapsto cluster markers. The clustering hook depends on theregionstate which is updated asynchronously viaonDragEnd:Beta Was this translation helpful? Give feedback.
All reactions