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.
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.