| 'playing back' the trip? | ||
| Written by MaFt 48 months ago | ||
| is it possible to 'play back' the trips? i've saved a couple of GPX files from iGO and i'm sure at cebit 07 we were shown some trips being 'played back' rather than just a static route? MaFt | ||
| Re: 'playing back' the trip? | ||
| Written by braco 48 months ago, edited by braco 48 months ago | ||
| Hi! Currently, it is not possible to play-back a trip on the TripTracker main site. This can be done by passing certain (undocumented) JavaScript parameters to the TripTracker map widget. For an example of the replay function in action, see http://ilm12.triptracker.net or http://marinada.triptracker.net/. You can view the HTML source to see the "dirty details" of how to set this up. We're still considering whether to add a "replay" feature to the main site and/or to the "embed trip" wizard. -- Andrej | ||
| Re: 'playing back' the trip? | ||
| Written by quotidian 45 months ago | ||
| Has there been any update to this? I have just finished my trip, I need to add a few more shots and complete my Journal entries but would love a replay option. It would also be nice to be able to download your trip for offline viewing. Beau | ||
| Re: 'playing back' the trip? | ||
| Written by tine 44 months ago, edited by tine 44 months ago | ||
| Sorry for the delay here, but here's the breakdown on how to "replay" or "play back" a trip. I hope the explanations of the parameters are straightforward enough... First, a sample widget code with all the example parameters, further down below, in the "src" string: <script type="text/javascript" src="http://triptracker.net/trip/1234/embmap/live?addtrips=1235,1236,1237&title=My fave trip&liveicons=none,http://www.url.to/your/trip/someicon.png,http://www.url.to/your/trip/someothericon.png,none&w=800&h=600 &href=http://triptracker.net&showtracks=true,false,true,true&playback=true,true,false,true"></script> The explanation of the parameters are given in the next post... Martin | ||
| Re: 'playing back' the trip? | ||
| Written by tine 44 months ago | ||
| Continuing now with the parameters, dissected... http://triptracker.net/trip/<tripID>/embmap/live (where <tripID> is the base trip ID number of the list of trips that you want to include in the "addtrips" parameter, explained below (example: http://triptracker.net/trip/1234/embmap/live) * addtrips (list of trip ID numbers related to <tripID> above, each one separated by a comma (example: addtrips=1235,1236,1237)) * title (the trip title that will appear in the widget's titlebar area (example: title=My fave trip)) * liveicons (for each trip ID in the "addtrips" parameter, specify a corresponding value of either the URL to an image or "none", separated by commas, to be displayed as your live tracking icons. (example: liveicons=none,http://www.url.to/your/trip/someicon.png,http://www.url.to/your/trip/someothericon.png,none)) * w (width, represented as pixels, of the map widget (example: w=800)) * h (height, represented as pixels, of the map widget (example: h=600)) * href (a specific web URL that users will be redirected to if they click on the bottom portion of the map widget (example: http://triptracker.net)) * showtracks (for each trip ID in the "addtrips" parameter, specify a corresponding value of either "true" or "false", separated by commas, for displaying track lines. (example: showtracks=true,false,true,true)) * playback (for each trip ID in the "addtrips" parameter, specify a corresponding value of either "true" or "false", separated by commas, for replaying tracks once they've completed. (example: playback=true,true,false,true)) You can see an actual implementation of this, with the playback flag set to true, at http://ilm12.triptracker.net, and if you look at that page's source, you'll see that the widget code follows the same format as the sample code up above. Martin | ||