Hi Vincent,

"V. de Weger" <[EMAIL PROTECTED]> wrote on 10/05/2006 05:00:42 PM:

> I have a Batik application that shows dynamic (update a couple of times 
a
> minute) data on a roadmap. Some maps have over 5000 of such dynamic 
elements
> -- elements are representing speed/flow sensors, etc -- . At the moment 
I
> change the fill color of these elements on new data arrival, and this 
works
> fine. Now I would like to label each of these elements (much like a 
tooltip,
> but not on one element but on all) with the latest data. Users can 
hide/make
> visible the labels from a toolbar.
> 
> My current options seem to be:
> 
> - put a text in the dom for each dynamic element that gets changed every
> time new data is available
> - put an overlay on the canvas that paints the text at the right 
positions (
> zoomed, panned, rotated, skewed etc.)

   You should probably do #1.  #2 _may_ be more efficient but it
will be a significant task to keep them 'in sync'.  Perhaps a
better route than #2 if #1 proves too slow would be to use two
canvas's on top of each other.  Have the bottom one be the 'static'
content and put just the dynamic content in the top Canvas.  This
way you can mirror the structure of the SVG document in both which
should make keeping the two in sync easier.  This should be at least
as efficient as #2.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to