react native maps clustering
I am new to react-native and I want to integrate maps in my app, I am using the “react-native-maps” library for that https://github.com/airbnb/react-native-maps I want to use clustering but I am unable to find proper documentations related to that. Please help me to find documentation of how to integrate maps with clustering and also tell which library is best for the implementation of clustering for both platforms, iOS and Android.
You can use mapbox/supercluster repo, and here's a gist showing how to implements supercluster to React Native. It's initially developed for browser/node applications but you can still simply npm install and use it (javascript is javascript everywhere). Add the clustered markers into your MapView (originally shared here): <MapView ref={ref => { this.map = ref; }}> { this.state.markers.map((marker, index) => { return ( <MapView.Marker coordinate={{ latitude: marker.geometry.coordinates[1], longitud...