Closed (fixed)
Project:
Mapping kit
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Nov 2008 at 09:57 UTC
Updated:
4 Dec 2009 at 22:28 UTC
Hi, there
I found this comment inside "OpenLayers-2.7.Format.GPX.js" file:
// We don't yet support extraction of trkpt attributes
Any particular reason why? Because that's exactly what I need. I want to show trkpt's data (time and speed) in popups along the GPS track instead of wpt
Also, where are the extracting functions called from - "GPX.Format.js" or "OpenLayers-2.7.Format.GPX.js"?
Best regards
Comments
Comment #1
jpulles commentedHi,
The GPX.Format.js file is only used for the previous 2.6 release of OpenLayers.
The OpenLayers-2.7.Format.GPX.js file is a slightly modified version of the OpenLayers Format/GPX.js file; it reads the waypoints as the last features in order to get them on top when drawing them. See also http://trac.openlayers.org/ticket/1763.
The "We don't support ..." will be an OpenLayers comment; since the track points are not drawn as points, there would be no use in reading attributes for them.
Comment #2
provod commentedOK, I see. Then to show trackpoints with their attributes only the functions in "OpenLayers-2.7.Format.GPX.js" need to be modified or there's more to it?
Cheers
Comment #3
jpulles commentedYes, you probably should read the trackpoints similar to how waypoints are read.
Cheers.
Comment #4
jpulles commented