react-native-map-clustering icon indicating copy to clipboard operation
react-native-map-clustering copied to clipboard

Spiral crashing on some android devices

Open kimkong88 opened this issue 3 years ago • 0 comments

When click on cluster and there are markers on same location,

some android devices crash:

image

code is just typical use of this mapview

                    mapRef={(mapRef) => {
                        this.mapView = mapRef;
                    }}
                    minPoints={2}
                    provider={PROVIDER_GOOGLE}
                    clusterColor={Theme.palette.primary}
                    style={styles.map}
                    initialRegion={this.state.initialRegion}
                >
                    {_.map(this.props.rentMap.data, (r, i) => {
                        return (
                            <Marker
                                zIndex={i++}
                                identifier={r.id}
                                key={r.id}
                                coordinate={{
                                    latitude: r.location.lat,
                                    longitude: r.location.lng,
                                }}
                                onPress={this.onPressRentMarker.bind(
                                    this,
                                    r.id
                                )}
                            >
                                {this.renderMarker(r, r.id)}
                            </Marker>
                        );
                    })}
                </MapView>```

I need to disable spiral for now but not sure what's causing the actual issue.

kimkong88 avatar Jan 13 '22 06:01 kimkong88