Download & Extend

More Track Points in Display of Track on Map

Project:Trackfield
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Some of trails I am mapping for mountain biking are very close together and serpentine. The problem I am finding is that many of the track points are not represented on the Gmap, so the lines look more jagged than they should be; consequentally, the line does not follow the trail many times and also skips the contoured corners of the trails. The GPX file in use shows plenty of track points in other software programs, but under this module the density of track points is inadequate. Is there a modification that can be made to use more track points from the GPX file on the map?

Comments

#1

I'm assuming my issue lies in the execution of the script in the PolylineReducer.php file with the Douglas-Peuker method for reducing trackpoints. How would I go about bypassing this, because I prefer to have all points shown in the line?

#2

I discovered that the gmap module does not play nice with too many points. The 'static' (image based) map that Google generates plays even less nicely.

Hence the introduction of the point reduction code.

You could remove the point reduction stuff but believe you will end up with many broken map displays (where the number of points is too large).

FWIW, when one generates KML for trails and has the Google server look after rendering things look fine. Eg:

http://maps.google.com.au/?q=http://nobmob.com/node/8/kml

It is easy to embed this in your site. Eg:

http://nobmob.com/node/8/map

#3

Your recommendation for allowing the second look in Google is a good alternate option. On most of the maps, the point reduction is fine, but where I'm finding the issue is on trails that are packed into a small area and turn a lot. The map just doesn't look like anything usable. What would be helpful is the ability to control (e.g. "play with") the reduction of track points for certain cases (perhaps per content type). Reducing the current point reduction by half might solve my issue.

Are you using the dev version on the map you shared, or is it the production version that doesn't reduce poly lines?

I'm still enjoying this module! Very well done.

#4

On the link here...

http://nobmob.com/node/8/map

... the polyline reduction is not in play. That is because the above link renders directly from KML and KML generation does not include polyline reduction.

That is not to say it's a different version of the software, it's just rendering KML on Gmaps is nothing to do with this issue.

#5

I like that map too, with the pictures involved directly on the map. I'll consider that as an alternative, but I really like your module and the better use of permission controls in Drupal that it affords.

#6

I have actually recently been experimenting with creating PDFs, which is not relevant to this request really, but...

... the same mechanism that is used to generate the PDF I was using can also be applied to static maps perhaps. I may look into this more, but sorry, this is not a priority.

nobody click here