Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
minZoom: 1,
maxZoom: 16,
extent: 512,
accessor: 'location',
animateClusters: true,
clusteringEnabled: true,
clusterPressMaxChildren: 100,
preserveClusterPressBehavior: true,
width: Dimensions.get('window').width,
height: Dimensions.get('window').height,
layoutAnimationConf: LayoutAnimation.Presets.spring,
edgePadding: { top: 10, left: 10, right: 10, bottom: 10 }
}
ClusteredMapView.propTypes = {
...MapView.propTypes,
// number
radius: PropTypes.number,
width: PropTypes.number.isRequired,
height: PropTypes.number.isRequired,
extent: PropTypes.number.isRequired,
minZoom: PropTypes.number.isRequired,
maxZoom: PropTypes.number.isRequired,
clusterPressMaxChildren: PropTypes.number.isRequired,
// array
data: PropTypes.array.isRequired,
// func
onExplode: PropTypes.func,
onImplode: PropTypes.func,
onClusterPress: PropTypes.func,
renderMarker: PropTypes.func.isRequired,
renderCluster: PropTypes.func.isRequired,