Active
Project:
Trackfield
Version:
6.x-1.0
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Aug 2010 at 13:28 UTC
Updated:
25 Oct 2010 at 16:39 UTC
Jump to comment: Most recent file
Comments
Comment #1
theabacus commentedSubscribe...also curious about how to do this.
Comment #2
theabacus commentedLostmonkey, I kind of figured out a solution. It isn't pretty and requires some programming, but it appears to work. For my purposes, I will only ever have one track on the map at once...so you will need to modify it if you want to have a bunch.
In summary, I am using hook_gmap() to intercept the map array before it goes to Views. Unfortunately, there is some bugs with hook_gmap(), so you actually have to have a ton of code in the hook...kinda stupid (ya..and took me hours to figure out). Anyway, I add the track/shape from the hook. I plan to make a CCK field where lat/lon points can be inputted (KML, or whatever) and then are processed with the PHP to get the lat/lon for each point.
This isn't a pretty solution and requires a lot of custom coding, but it does work.
See attached file...(note the "CUSTOM CODE" comments). Hope this helps.