Hi Dustin,

I'm afraid that's not possible because the event object does not have a 
reference to the HTML element(s) that "render" the event. (Since an 
event can appear on multiple bands, either such a reference is not kept 
at all or it has to be kept for each band, which is more costly that I 
thought should be.)

David

Dustin Charles Burke wrote:
> Hi all,
>
> I'm trying to open the bubble corresponding to an event object.  I can walk
> over the events using the EventSource iterator and show the correct bubble
> using the EventPainter's _showBubble method; however, I can't figure out how
> to get the x and y coordinates of the event's icon on which to center the
> bubble.  Any ideas? 
>
> var x = 0; // pageX of the event's icon ?
> var y = 0; // pageY of the event's icon ?
> var iter = eventSource.getAllEventIterator();
> var evt = iter.next();                                
> tl.getBand(0).getEventPainter()._showBubble(x,y,evt);
>
> // ideally, wouldn't it be nice to simply call: evt.ShowBubble()
>
> Best,
> Dustin Burke
>
>
> _______________________________________________
> 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