10

I am making an application with google maps.

When markers are overlapping only the last one is displayed even if the icons are different..

I do not want it to cluster in that case, rather it should show both maybe by changing the coordinates just a but??

Any solutions??

Kara
  • 6,115
  • 16
  • 50
  • 57
loo
  • 707
  • 10
  • 22
  • This feature has been "Acknowledge" with issue 119 in gmaps-api-issues since 2009... http://code.google.com/p/gmaps-api-issues/issues/detail?id=119 – givanse Oct 31 '13 at 16:34

2 Answers2

7

I think this is a pretty elegant solution, called Spiderfying the markers.

https://github.com/jawj/OverlappingMarkerSpiderfier

I'm thinking of using it.

What I do now is use JavaScript to make a fancy popup that hides and shows divs on one marker location (created problematically in PHP, but you could do it on JS too). It has the side benefit of allowing less markers on the map.

Click a black numbered marker on this map to see it in action. http://www.yourmapper.com/map/111/crime-reports/crime-in-metro-louisville-ky-since-jan-2003.htm

Michael S
  • 183
  • 2
  • 11
  • 2
    Just an FYI, I actually did use this on the live site, and it is working really well. http://www.yourmapper.com/map.php Feel free to mark the answer solved if you like it :). – Michael S Mar 04 '13 at 17:43
1

Another option is to use Google Maps API 3 Utility Library, it has a Marker Clusterer.

givanse
  • 14,503
  • 8
  • 51
  • 75