Skip to content

Commit 215775d

Browse files
Update CustomMarker.js
1 parent eec70cd commit 215775d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MapView/CustomMarker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default class CustomMarker extends Component {
7878
let clusterColor;
7979
let markers;
8080
if (this.state.clusterId) {
81-
markers = superCluster.getLeaves(this.state.clusterId);
81+
markers = GLOBAL[this.props.superCluster].getLeaves(this.state.clusterId);
8282
}
8383

8484
if (this.props.getClusterColor && markers) {
@@ -132,7 +132,7 @@ export default class CustomMarker extends Component {
132132
coordinate = {coordinates}
133133
onPress = {()=>{
134134
if (!markers) {
135-
markers = superCluster.getLeaves(this.state.clusterId);
135+
markers = GLOBAL[this.props.superCluster].getLeaves(this.state.clusterId);
136136
}
137137
this.props.onClusterPress(this.state.coordinates, markers);
138138
}}>

0 commit comments

Comments
 (0)