duniter / duniter-map

Generates a Leaflet.JS map of Duniter nodes
3 stars 0 forks source link

show multiple nodes at the same location #1

Open Tortue95 opened 7 years ago

Tortue95 commented 7 years ago

Hi, at this coordinates: 48.8582, 2.3387000000000002 we have a lot of nodes, but we can see only one.

But good works !!! Thanks

mmuman commented 7 years ago

There are 7 of them in the /peers.geojson file already… Maybe there is a flag to set in Leaflet to have them visually separate? I could add some random offset… If you open the iframe in another tab and hit Tab several times, you'll see it focusses the same point several times, and hitting Enter opens a different popup.

mmuman commented 7 years ago

Looks like I should add https://github.com/Leaflet/Leaflet.markercluster :-) Need to make sure it doesn't eat up CPU with animation though. Maybe that's optional...