Overlapping Marker Spiderfier is a javascript library used at Google Maps or Leaflet to spiderfy markers
The library enables marker groups getting closer than a limit to each-other to be moved to a location nearby on the map, connecting to their real location via lines. See the demo.
Version for Google Maps. Version for Leaflet.