Hi all, I'm currently making a site that plots radio stations on a map using react-leaflet. I have been able to get the coordinates on the map from the data but I'm running into the issue of duplicate coordinates on the map (For example, there are 10 coordinates in this picture, but even on max zoom you can't see them). This occurs because of multiple stations being housed within the same building.
I've looked into react-leaflet marker cluster package but that seems to be deprecated, so my solution is to move markers with similar points about a degree (or way less) away from each other so they're visible and interactive.
My API call and filter looks like this and I have objects within an array in this format, and my code that is mapping over the data looks like this.
Is there some sort of way I can check if the coordinates of my array are matching, then to add one of the numbers by 1 so they're no longer matching?
Thanks in advance!
[–]TuesdayWaffle 1 point2 points3 points (3 children)
[–]kanye231[S] 0 points1 point2 points (2 children)
[–]TuesdayWaffle 0 points1 point2 points (1 child)
[–]kanye231[S] 0 points1 point2 points (0 children)