Closed sprotymo closed 4 years ago
`JavaScript
this.onClusterMarkerPress = (clusterId, coordinates) => { const { isClusterExpandClick, onClusterClick } = this.props; if (isClusterExpandClick) { const region = clusterService.expandCluster(clusterId); this.mapRef.animateToRegion(region, CLUSTER_EXPAND_TIME); } onClusterClick && onClusterClick(coordinates); };
... onClusterMarkerPress: () => this.onClusterMarkerPress(marker.properties.cluster_id, geometry.coordinates) ...
`
Good point, will add. You can open PR as well!
@dimagreat @sprotymo can we get list of items in it using clusterId? How do know the items inside the cluster?
Please, can you add coordinates in onClusterClick?