To follow up: I went through The Timeline tutorial and found that it *appears* to be possible, but there are still problems I'm not able to resolve:
http://www.greglinch.com/jfk/jfkuse/jfk.html Another problem I've experienced with the timeline, even early on, was with getting the timeline in Exhibit to recognize the times. The code I'm working with for hotzones: <script> var timelineConfig = { //Size and behavior timelineConstructor: function (div, eventSource) { div.style.height="300px"; var theme = Timeline.ClassicTheme.create(); theme.event.label.width = 200; // px theme.event.bubble.width = 200; theme.event.bubble.height = 200; var date = "Fri Nov 22 1963 13:00:00 GMT-0600" var bandInfos = [ Timeline.createHotZoneBandInfo({ zones: [ { start: "Fri Nov 22 1963 00:00:00 GMT-0600", end: "Mon Nov 25 1963 00:00:00 GMT-0600", magnify: 10, unit: Timeline.DateTime.DAY }, { start: "Fri Nov 22 1963 09:00:00 GMT-0600", end: "Sun Nov 24 1963 00:00:00 GMT-0600", magnify: 5, unit: Timeline.DateTime.HOUR }, { start: "Fri Nov 22 1963 11:00:00 GMT-0600", end: "Sat Nov 23 1963 00:00:00 GMT-0600", magnify: 5, unit: Timeline.DateTime.MINUTE, multiple: 10 }, { start: "Fri Nov 22 1963 12:00:00 GMT-0600", end: "Fri Nov 22 1963 14:00:00 GMT-0600", magnify: 3, unit: Timeline.DateTime.MINUTE, multiple: 5 } ], timeZone: -6, width: "75%", intervalUnit: Timeline.DateTime.MONTH, intervalPixels: 60, eventSource: eventSource, date: date, theme: theme }), .... </script> On Aug 13, 9:12 am, Greg Linch <[email protected]> wrote: > I'm working on an Exhibit project with a timeline and was curious if > it's possible to "magnify" certain periods of time like the Timeline > widget example does: > > http://www.simile-widgets.org/timeline > > The code that defines the parameters from the Timeline <head> is > > var tl; > function onLoad() { > var eventSource = new Timeline.DefaultEventSource(); > > var zones = [ > { start: "Fri Nov 22 1963 00:00:00 GMT-0600", > end: "Mon Nov 25 1963 00:00:00 GMT-0600", > magnify: 10, > unit: Timeline.DateTime.DAY > }, > { start: "Fri Nov 22 1963 09:00:00 GMT-0600", > end: "Sun Nov 24 1963 00:00:00 GMT-0600", > magnify: 5, > unit: Timeline.DateTime.HOUR > }, > { start: "Fri Nov 22 1963 11:00:00 GMT-0600", > end: "Sat Nov 23 1963 00:00:00 GMT-0600", > magnify: 5, > unit: Timeline.DateTime.MINUTE, > multiple: 10 > }, > { start: "Fri Nov 22 1963 12:00:00 GMT-0600", > end: "Fri Nov 22 1963 14:00:00 GMT-0600", > magnify: 3, > unit: Timeline.DateTime.MINUTE, > multiple: 5 > } > ]; > var zones2 = [ > { start: "Fri Nov 22 1963 00:00:00 GMT-0600", > end: "Mon Nov 25 1963 00:00:00 GMT-0600", > magnify: 10, > unit: Timeline.DateTime.WEEK > }, > { start: "Fri Nov 22 1963 09:00:00 GMT-0600", > end: "Sun Nov 24 1963 00:00:00 GMT-0600", > magnify: 5, > unit: Timeline.DateTime.DAY > }, > { start: "Fri Nov 22 1963 11:00:00 GMT-0600", > end: "Sat Nov 23 1963 00:00:00 GMT-0600", > magnify: 5, > unit: Timeline.DateTime.MINUTE, > multiple: 60 > }, > { start: "Fri Nov 22 1963 12:00:00 GMT-0600", > end: "Fri Nov 22 1963 14:00:00 GMT-0600", > magnify: 3, > unit: Timeline.DateTime.MINUTE, > multiple: 15 > } > ]; > > I've tried a few possibilities, but have had no luck. It looks like > there's no way to easily adapt these Timeline parameters to Exhibit's > timeline because they're being created in different ways. > > Any ideas? > > If it's not possible to replicate that in Exhibit, I might use the > code from Timeline on the same page. If I do that, is there any way to > sync the Timeline widget with Exhibit (such as with > ex:selectCoordinator) so when you click the timeline, for example, it > will go to that point on the map? > > Thanks, > Greg --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=en -~----------~----~----~----~------~----~------~--~---
