with the attached patch you can parse a gpx-file and display its waypoints as markers and the routes and track-segments as polygons (didn't test the track segments yet).
the drawing of polygons requires my patch at http://drupal.org/node/133980 to see something on the screen

Comments?

CommentFileSizeAuthor
gmap-gpx-1.patch6.46 KBray007
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

JohnG-1’s picture

+1 this feature :)

ray007’s picture

This patch should still apply to current top of development, maybe now would be a good time to look at it again?

JohnG-1’s picture

thanks Ray I'll try it again in the next day or so

mfredrickson’s picture

Project: GMap Module » Track
Version: 5.x-1.x-dev » 4.7.x-1.x-dev
Status: Needs review » Needs work

This is out of scope for the gmap module. Please see the track module and address you requests there.

It seems track has not been updated since november 2006. I suggest you contact the track's maintainer (Gaby) and see if you can collaborate on the module. It seems to recreate _a lot_ of the gmap functionality - so I think you could make quick progress ripping out the track's gmap implementation and relying on gmap.module. In return, you can focus on the GPX to GMarker/GPolyline conversion and hand that over to GMap for display.

I'm marking as code needs work, as you'll need to rejigger this for track.module.

Good luck!

lenkkivihko’s picture

Title: GPX file support » Track vs. this patch

Has anyone validated this parser compared to the parser already included in the Track module?
Don't they have a similar functionality & fully overlapping.

Which parser to take as a basis for further development?