OS OpenSpace [logo]

OS OpenSpace Forum » OS OpenSpace » API Development Help

Thread: Clustering and marker popups...

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 2 - Pages: 1 - Last Post: 02-Aug-2010 16:15 by: davidm

Posts: 22
Registered: 25/06/09
Clustering and marker popups...
Posted: 23-Jul-2010 15:08
  Click to reply to this thread Reply

I have a map displaying planning application markers. Often one location (same easting and northing) will have more than one associated application and therefore the markers will lie exactly on top of each other.

I have a couple of questions:

1. Can I cluster markers based on the fact that the easting / northings are EXACTLY the same (the cluster manager example seems to cluster by some degree of closeness parameter). I only want to cluster if the markers are at the same point. If so how?

2. The markers on my map are set to popup summary content when clicked. How can this be acheived when the markers are at exactly the same location / clustered? They do not separate out when you zoom in.

Any ideas?



Posts: 390
Registered: 07/02/08
Re: Clustering and marker popups...
Posted: 25-Jul-2010 22:12   in response to: cotswolddc
  Click to reply to this thread Reply

For Google maps I produced an offsetable marker, see here

http://www.bdcc.co.uk/Gmaps/BdccGmapBits.htm (4th map down)

If you are good with Java script I expect the same could be done for OpenLayers/OpenSpace - afraid I have not done it. Have you searched the OpenLayers forum ?


Posts: 7
Registered: 07/07/09
Re: Clustering and marker popups...
Posted: 02-Aug-2010 16:15   in response to: cotswolddc
  Click to reply to this thread Reply

You could display one marker but have multiple applications listed in the marker pop up box.

Expert: 51 - 1000 pts
Advanced: 31 - 50 pts
Intermediate: 16 - 30 pts
Novice: 5 - 15 pts
Newbie: 0 - 4 pts
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums