mrblue wrote:
> I had a look at the timemap project and i really like the feature to
> load content automatically.
> Is there an easy way to achieve this ?
>
> Eg: We have a timeline with all presidents. There could be a box
> underneath the timeline showing the wikipedia entry from the "current"
> president.
>
> IT would be probably easier to load that html content when we click on
> the event (Maybe the bubble can be disabled ?) -> But i have no idea
> how to do so.
>
> If someone could point me in the right direction.. This must have been
> done before, right ?
>
We don't have any "timemap" project. We have Timeline, Timeplot, and an
unreleased Timegrid. We also have Exhibit which can combine Timeline and
Google Maps, but no "timemap" :) So, which one did you mean?...
If you meant Timeline, then yes, there's a way to do this. Using 2.2.0,
you need something like this to get notified when the user clicks on an
event
tl.getBand(0).getEventPainter(0.addOnSelectListener(function(eventID) {
var event = eventSource.getEvent(eventID);
... do something here
});
If you want to take over the whole event handling for the popup, then
you need
tl.getBand(0).getEventPainter().showBubble = function(event) {
... do something here
};
David
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---