Jon,

I just added that capability in the (unreleased) 2.0 version of Timeline.

    http://static.simile.mit.edu/timeline/api-2.0/timeline-api.js

This feature can be seen in this exhibit example

    http://simile.mit.edu/exhibit/examples/presidents/presidents-2.html

in which clicking on a marker on the map would scroll the timeline and 
pop up a bubble.

You can call

    tl.getBand(0).showBubbleForEvent(eventID);

You can explicitly specify the event id of an event using the "id" 
attribute in the XML file:

    <event id="jfk shot" title="JFK shot" ...

Let me know if that works for you.

David

Jon Crump wrote:
> All you java-script wizards out there,
>
> I just discovered I could call
>
> function centerTimeline(date) {
>      
> tl.getBand(0).setCenterVisibleDate(Timeline.DateTime.parseGregorianDateTime(date));
>  
> }
>
> from a link (properly escaped) within the content of a bubble, thus:
>
> Move the timeline to: &lt;a href="javascript:centerTimeline(1608);" 
> &gt;1608&lt;/a&gt;
>
> which is simple and cool, but what I would like to do is scroll to a date 
> and open the bubble of a particular event there. My slender js skills are 
> a bit overwhelmed. Can anyone suggest a similarly straightforward way to 
> do this?
>
> Jon
>
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>   

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to