Input filter for including track maps
chrissearle - February 21, 2009 - 11:12
| Project: | Track |
| Version: | HEAD |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
Now that this is running in 6.x ;)
The track node itself is pretty detailed. Gives charts and links to different formats etc.
I'd like to be able to have track nodes to contain tracks but the ability to include just the map part as an image on other nodes - I guess similar to the way img_assist does image nodes (allows the user to set size, caption etc).
That would allow me for example to have a report of a trip that has text, pics and several tracks - and users could then click the track image to open the track node for full details.
Thinking about this - it could be part of track or a separate module (or sub module).

#1
Hmm, very interesting. I like it
Would that aggregate of tracks to a node fit better with the Trackfield project?
http://drupal.org/project/trackfield
What about building this based on views?
http://drupal.org/project/views
The trick then would be granularizing this module to make it view-compatable.
#2
I didn't know about the trackfield module but it has the same issue as imagefield for images as far as I can see. If you don't want a standard structure/styling to the node - then it is hard to make it work.
Consider a post - you have a lot of text content and you want to drag in a few images various places - to illustrate what you are talking about. Same for these tracks.
Similar to views - great for lists or structured form - but this is a lot more freeform. Type a paragraph, drag in an img_assist image - type a couple paras more - oh here I'd like a right float track - half a page more - here a larger (across the whole post) track etc etc.
I find that input filters cover this for me better than having a constricted list of fields in a given order.
Unless of course its possible to do something similar with the fields ;)
#3
An idea, add an iframe to the html code like :
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.fr/maps?f=q&source=s_q&hl=fr&geocode=&q=http://gabriel.landais.org/track/kml/149&ie=UTF8&s=AARTsJrwsptfzojqD7WsX7Ixuxq5nbgqig&ll=47.260029,-1.597995&spn=0.081551,0.145912&z=12&output=embed"></iframe>You can see http://gabriel.landais.org/track/kml/149 , that is the link to the kml from my node.
ll, spn and z are documented on http://mapki.com/index.php?title=Google_Map_Parameters