Use Google MarkerClusterer for Boat positions

Comments

14 comments posted
#1

We are using Google's GMarkerManager with a maximum zoom of 6 to manage the
clusters. We can always change it as more boats come online.

Posted by waverate on Thu, 11/25/2010 - 08:05
#2

I tried the GMarkerManager but discarded it as the performance was not as good as the ClusterManager.

With groups of Albacores in the same location (ie at clubs) the cluster manager can show a single icon with a count of boats in it when the markers would otherwise be overlapped. As you zoom in the markers separate once they are further apart. So for example, when zoomed right out, the would be a cluster in the UK, one in Canada and one in the US, plus any other boats dotted around the world. Zooming in would show the detail.

Posted by Roobarb on Thu, 11/25/2010 - 10:03
#3

I'll have to look into that API and see what functions are closest to my
choices:

- No manager (use GMap API directly)
- Google's GMarkerManager
- GMaps Utility Library MarkerManager
- GMaps Utility Library MarkerClusterer
- Jef Poskanzer's Clusterer
- Martin Pearman's ClusterMarker

Posted by waverate on Thu, 11/25/2010 - 10:10
#4

I thought you might like to see some screen shots of the ClusterManager working.

Each screen shot has the same data which shows more detail as you zoom in on an area.

The markers in the North Sea are simulated locations that have gone astray, I guess they could be Albacores!

File attachments:

Posted by Roobarb on Fri, 11/26/2010 - 00:33
#5

It looks great. Obviously, this is the direction that we would like to go in.

Right now, all we are doing is replacing multiple markers with a single marker when they are within a certain grouping of each other at a certain zoom level.

I have a feeling that if we cannot see an easy way to implement this using gMap in an hour, it will have to wait until a future revision.

Posted by waverate on Fri, 11/26/2010 - 01:39
#6

When you get a chance, can you send a screenshot of the marker and cluster hover?

I would like to see the different information that you show.

Right now the marker and cluster hover shows the same information. The cluster shows the information of the lowest sail number in the cluster.

Posted by waverate on Fri, 11/26/2010 - 02:34
#7

We use a custom marker to show additional info rather than the info window(so it moves with the vehicle marker when the vehicle moves) see below:

- The ID is displayed with a mouse over.

- The cluster markers simply show the total in the cluster. Clicking on the cluster Zooms in.

File Attachments:

Posted by Roobarb on Fri, 11/26/2010 - 04:39
#8

Got it. I was thinking of displaying a list of all boat numbers in the cluster hover.

It turns out that gMap does not support V3 of the API. I don't know what the major features of this version are. I hope we don't lose too much.

Posted by waverate on Fri, 11/26/2010 - 04:49
#9

The ClusterManager is also available for the V2 API

V3 API offers more mobile device support. V2 has been deprecated, but the functions between the two are very similar.

Posted by Roobarb on Fri, 11/26/2010 - 04:55
#10

MarkerClusterer for Google Maps v3 implemented. Now all we need to find is to find a nicer Marker and Cluster icon set.

Posted by waverate on Tue, 12/07/2010 - 10:56
#11
Status:active» needs review
Posted by waverate on Tue, 12/07/2010 - 10:57
#12

Doesn't look like the Map View is working... see 4 boats in Ottawa even when looking at Toronto boat. May need to populate more locations to see if this is working.

Individual boat location seems to be okay.

Need a different default for boats that have no location. I think I was seeing Ottawa come up as default.

Posted by Peter Duncan on Wed, 12/08/2010 - 19:57
#13

The Map View shows the Google Maps location of all the Boats in the Registry.

At this time, there are only five (5) Boats that have a Google Map location: four (4) in Ottawa in a MarkerCluster and one in Toronto.

The default location is 0N, 0E as described in #1811: Boat is located off the African Coast.

Posted by waverate on Wed, 12/08/2010 - 21:38
#14
Status:needs review» needs work

I'm not seeing the cluster numbers now- just a "push pin" with AL logo.

I think all of this geo-location function needs some work. The ideas discussed above are all on target with what is a desired end state.

I would not let this hold up rolling this out to membership. There is plenty of good from the registry even without the location function working. This can be postponed to a later version. It seems to be one of the more difficult problems to tackle.... I'll remind you to ask Chris Duncan (my brother) for help if you want it: www.gismatters.com

Posted by Peter Duncan on Thu, 12/30/2010 - 13:57