Closed (fixed)
Project:
Trackfield
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Jul 2011 at 03:01 UTC
Updated:
19 Jul 2011 at 03:18 UTC
When using Gmap static in views the PolylineReducer class is used to reduce the number of points to plot down so that http://maps.google.com/staticmap service can work with them.
On long tracks (those with many points) the PolylineReducer class takes a long time to run.
With a view with numerous tracks with this issue this can cause the page to timeout.
This calculation should be performed at time of node save, or it's result at least cached.
Comments
Comment #2
raintonr commentedThis was tracked down to the fact that the
_trackfield_map_optimise_for_gmapfunction always uses a very low tolerance then moves this up.It is better to use a starting tolerance based on the lat/lon range. This seems to work:
Possibly needs more thought before committing.
Comment #3
raintonr commentedhttp://drupalcode.org/project/trackfield.git/commit/8482926
Comment #5
silverwing commentedspam tag clean-up - please excuse the noise.