I figured it out. New question: http://groups.google.com/group/simile-widgets/browse_thread/thread/f233a74e902e4503
On Aug 13, 12:38 pm, Greg Linch <[email protected]> wrote: > To follow up: > > I went through TheTimelinetutorial 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 thetimeline, even early on, was > with getting thetimelineinExhibitto 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 anExhibitproject with atimelineand was curious if > > it's possible to "magnify" certain periods of time like theTimeline > > widget example does: > > >http://www.simile-widgets.org/timeline > > > The code that defines the parameters from theTimeline<head> is > > > var tl; > > function onLoad() { > > var eventSource = newTimeline.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 theseTimelineparameters toExhibit's > >timelinebecause they're being created in different ways. > > > Any ideas? > > > If it's not possible to replicate that inExhibit, I might use the > > code fromTimelineon the same page. If I do that, is there any way to > > sync theTimelinewidget withExhibit(such as with > > ex:selectCoordinator) so when you click thetimeline, 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 -~----------~----~----~----~------~----~------~--~---
