JiriHoffmann / react-native-clusterer

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

Can we have a full working example in the documentation? #24

Closed Akash-Hubspire closed 2 years ago

Akash-Hubspire commented 2 years ago

This is just a suggestion. It'd be great if you provided an example with dummy data in Clusterer as well as the other methods. Currently you've simply given a state const [markers, setMarkers] = useState([]);

It'd be great if you could show us how this markers could look like. Could it be an array of objects, something like the below example?: [{ _id: '637b17791efca34f05bd85ee', category: 'SPORTS', location: { coordinates: [75.420009, 12.235278], }, }, { _id: '637b17791efca34f05bd85ef', category: 'LOGS', location: { coordinates: [75.658586, 11.790694], }, }],

Apart from the example, if you could add this as comment in the documentation itself, that'd be great.