Ticket #329 (closed enhancement: needs testing)

Opened 5 years ago

Last modified 5 years ago

Add clustering function for map to speed it up

Reported by: ed Owned by: jim
Priority: major Milestone: Phase 5
Component: Drupal modules & settings Keywords:
Cc: Estimated Number of Hours: 0.0
Add Hours to Ticket: 0 Billable?: yes
Total Hours: 1.65

Description

Maps are going very slowly - add a clustering function to speed it up

Change History

comment:1 Changed 5 years ago by jim

This will be on a per-map basis (since many maps only show one pin)... This will probably be a views or gmap hook override. Will research after this SVN update.

comment:2 Changed 5 years ago by ed

start on 'one big map' for phase 5
don't do others for now

comment:3 Changed 5 years ago by jim

  • Add Hours to Ticket changed from 0.0 to 0.5
  • Total Hours changed from 0.0 to 0.5

Notes for me: It's a function hook_gmap($op, &$map) thing... Will have to intercept the right map call, then enable the correct clusterer by some voodoo involving adding javascript and maybe calling the mystical _gmap_markermanager_override() function

Notes for Ed: This is certainly some coding, somewhere between .25 and 5 hours! Will come back to it later this week.

comment:4 Changed 5 years ago by ed

leaving this open to see if it can squeeze into phase 5

comment:5 Changed 5 years ago by jim

I won't be able to get to this today... Since I re-installed my machine my local copy of the TN site is toast. I'll build another one very soon. I stand by my estimate though.

comment:6 Changed 5 years ago by jim

  • Add Hours to Ticket changed from 0.0 to 1.0
  • Total Hours changed from 0.5 to 1.5

Have this working on my machine... Fine tuning it now before shoving it in Git.

For future reference patch at http://drupal.org/node/1208420#comment-5287400 and tip at http://drupal.org/node/837092#comment-4419962 fixed the weird "2" count on MarkerCluster?.

Committing to DEV, then will tweak the views & settings on LIVE to use it.

comment:7 Changed 5 years ago by jim

  • Add Hours to Ticket changed from 0.0 to 0.15
  • Status changed from new to closed
  • Resolution set to needs testing
  • Total Hours changed from 1.5 to 1.65

Added to people, ini, project, and big map... Not perfect but should mean old computers and crappy browsers get a smoother experience.

comment:8 Changed 5 years ago by ed

looks good to me - can't see a problem with it - and can't see how to add a 'tested' status.

comment:9 Changed 5 years ago by jim

Hmmm... looks like we'd have to re-open it, then mark fixed. Seems a bit long-winded.

Note: See TracTickets for help on using tickets.