views:

56

answers:

3

I am using google map in my application. I have thousands of markers on my map.

I can display them well on map. I am using MySQL as my database in php.

But I have a problem when there are more than one location on the same position. It displays only one marker for all the locations(for same position).

In API, there is no solution for this. Can anyone help me for that ?

Thanks in advance...

A: 

It sounds like you are placing one marker directly on top of another. Are you using lat/long coordinates? If so, you could adjust the duplicate locations by randomly adding or subtracting a (very) small value from the duplicate lat/long. Kinda hacky, but i'm not sure how else you could handle this.

joeynelson
I don't want to change their positions.
Kapil
Then I don't think you're going to have much luck, sorry.
joeynelson
I think I can do something like I can open a div tag with all the locations available on it with their link.What do you think ???
Kapil
Sure, you could link to locations like Yelp does. When the user clicks a listing, focus on the marker and display the info overlay. But it will look like there's just one marker there.
joeynelson
I think for that I can use a different icon and give users some information for that.
Kapil
Ok I have done it. Soon I will place the url for that.Waiting for my application to be live...
Kapil
A: 

For lat/lon appearing at the same place when zoomed out, but actually different, look at the clustering example at http://code.google.com/apis/maps/documentation/javascript/v2/overlays.html#Marker_Manager For exactly the same position, you can't do anything but change one's position slightly.

Wrikken
A: 

Ok I have done it. Soon I will place the url for that.

Kapil
Waiting for my application to be live...
Kapil