JiriHoffmann / react-native-clusterer

React Native clustering library using C++ Supercluster implementation
MIT License
159 stars 20 forks source link

Does this only work for react-native-maps #25

Open Ballardian opened 1 year ago

Ballardian commented 1 year ago

I am using react-native-mapbox and neither the useClusterer or Clusterer work (or render in any way). Is this library only compatible with react-native-maps?

danshilm commented 1 year ago

This library doesn't concern itself with how the markers are displayed; only with whether markers need to be clustered or not and providing GeoJSON objects for those markers/clusters.

The only thing that comes to mind that one would need to do to get this library to work with react-native-mapbox is to calculate the latitude & longitude deltas.

How are you rendering the map & using clusterer?