views:

83

answers:

1

So I am trying to think of a way to facilitate two things. It may end up being a two step process in the end but I was looking for input.

The first thing I need to do is accommodate locations with the same address. The two scenarios that come to mind are businesses that share a location and apartment buildings.

The second thing I need to accommodate is a business/nonprofit with no headquarters, just a town. Right now I just map them to the town center, but if multiple businesses have no headquarters I run into the first problem.

So I did some Googling and found a solution that involved having a list of locations alongside the map so you can click on them and the info window will pop up. This isn't a solution for me though.

What I was thinking of was using the location to map the first point. For the second and points after that moving the marker over .05 degrees or something marginal so that the marker shows up. The inherent problem with that is that what happens if 12 Main Street turns into 13 Main Street?

So any thoughts on what I could do?

Thanks
Levi

A: 

There's an extension by Martin Pearman called ClusterMarker that detects any groups of two or more markers whose icons visually intersect when displayed. Each group of intersecting markers is then replaced with a single cluster marker that looks different. The cluster marker, when clicked, simply centres and zooms the map in on the markers whose icons previously intersected.

Mike Williams
How would this work with locations at the same address? When it zooms in won't they still be on top of each other? Perhaps I can check out how this is built and go from there though.Thanks!
Levi
@Levi - I'm doing clustering on a map with many overlapping locations. When you click on a cluster, it pops up a list of the markers it contains.
Chris B