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
I am unable to reproduce the error with the example points you provided. However, if you have multiple points with the exact same coordinate (in this case both have 38.257204 latitude), the expansion Region will have a delta of 0 resulting in react-native-maps not animating the zoom and just centering the cluster. I would suggest replacing the latitudeDelta with a small value such as 0.001 and the camera will zoom in during the animation. You can adjust at what zoom all clusters turn into points with the minZoom options property.
Hi, @JiriHoffmann
Thank you for the answer!
I changed the initialRegion's latitudeDelta to 0.001 and played with minZoom but It did not work!
Is there anything else that can affect this problem?
In this case, you would use maxZoom, because you are zooming in and thus the zoom value is higher. There was a bug with maxZoom, but it should be fixed in v2.0.0. Let me know if that resolves the issue.
I also get an error when I press the Cluster.
RPReplay_Final1700322898.mov
The example geojson;
[ { "type": "Feature", "properties": { "id": 3560, "lat_y": 38.257204, "long_x": -121.3739 }, "geometry": { "type": "Point", "coordinates": [ -121.3739, 38.257204 ] } }, { "type": "Feature", "properties": { "id": 1949, "lat_y": 38.257204, "long_x": -121.373203 }, "geometry": { "type": "Point", "coordinates": [ -121.373203, 38.257204 ] } }, ]
radius of Clusterer is 18
"react-native": "0.72.4",
"react-native-clusterer": "^1.3.0",
"react-native-maps": "^1.8.0",
Can you please help? @JiriHoffmann
The text was updated successfully, but these errors were encountered: