React Native Maps Super Cluster Versions Save

A Clustering-enabled map for React Native

1.5.0

5 years ago

We bumped to a new major version because of updated dependencies and new props.

  • update dependencies
  • fix race condition (#48)
  • add prop to let developers customise Marker animation (#47)

Deprecated props will be definitively removed in next major release in favour of renderCluster (see Readme for more info).

v1.3.1

6 years ago

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

v1.2.2

6 years ago

This release is to follow the npm module versioning and contains a minor improvement to the children parameter of onClusterPress.

v1.2.1

6 years ago

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:

  • using react-native-maps fitToCoordinates (and edgePadding) for greater accuracy and control over press-to-zoom
  • introducing new prop for controlling whether default press-to-zoom should be preserved even if onClusterPress is passed as prop
  • passing clustered markers data as parameter of onClusterPress, in order to allow complete control over the cluster's child markers
  • exposing clustering engine instance

v1.1.1

6 years ago

This release focuses on giving more control to developers over the component behavior. Different props have been added:

  • radius (supercluster)
  • extent (supercluster)
  • minZoom (supercluster)
  • maxZoom (superCluster)
  • clusteringEnabled: enabled/disable clustering
  • scaleUpRatio: maps cluster markers count to cluster (and font) size
  • clusterInitialFontSize: base font size for clusters counter text

See README for information.

v1.1.0

6 years ago

This release allows developers to use onRegionChangeComplete as they would do with react-native-maps.

v1.0.9

6 years ago

This release completes the onClusterPress TODO task.

Now, the onPress handler correctly makes a zoom to the cluster expansion zoom level.

v1.0.8

6 years ago

This release closes #2 by fixing a design issue that was preventing Marker(s) render when marker's dataset was available right on mount.

v1.0.7

6 years ago

This release closes #2 by adding an important feature:

  • support clustering-resistant children

v1.0.6

6 years ago

First working implementation of the clustering-enabled MapView. Features:

  • performance
  • automatic clustering
  • zoom on marker press
  • complete control over markers behavior and style
  • automatic clusters resizing based on number of grouped markers
  • complete control over underlying map view instance (react-native-maps)