A Clustering-enabled map for React Native
We bumped to a new major version because of updated dependencies and new props.
Deprecated props will be definitively removed in next major release in favour of renderCluster
(see Readme for more info).
This release adds the ability to render custom cluster views and, as a consequence, eventually use react-native-maps's Callouts to show thumbs of underlying clustered points.
As per the above, new prop have been added:
renderCluster(cluster, onPress)
and some props have been deprecated (but still in place for backward compatibility):
scaleUpRatio
clusterInitialFontSize
clusterInitialDimension
textStyle
containerStyle
This release is to follow the npm module versioning and contains a minor improvement to the children
parameter of onClusterPress
.
This release wants to improve cluster's press-to-zoom default behavior, while allowing more expert developers to access underlying clustering engine and completely override default press-to-zoom feature.
This has been done by:
fitToCoordinates
(and edgePadding
) for greater accuracy and control over press-to-zoomonClusterPress
is passed as proponClusterPress
, in order to allow complete control over the cluster's child markersThis release focuses on giving more control to developers over the component behavior. Different props have been added:
See README for information.
This release allows developers to use onRegionChangeComplete
as they would do with react-native-maps.
This release completes the onClusterPress TODO task.
Now, the onPress handler correctly makes a zoom to the cluster expansion zoom level.
This release closes #2 by fixing a design issue that was preventing Marker(s) render when marker's dataset was available right on mount.
This release closes #2 by adding an important feature:
First working implementation of the clustering-enabled MapView. Features: