Hi,
I have a browser, losely based on the Squiggle example. I also have a tree which shows only 'g' elements in the SVG document and allows them to be removed from the tree, using either removeChild or replaceChild. On most documents this works fine, however on the 'mapSpain.svg' sample document the JVM seems to hang during either of these calls. I'm using batik 1.5beta, I've just upgraded and it seemed to work before with 1.1.1.
Since you don't mention it I assume you aren't calling removeChild/replaceChild from
the UpdateManager's runnable queue?
If not you are probably running into a threading issue. Search the archives for examples of how
to use the UpdateManager's runnable queue to make DOM modifications with Batik 1.5. As a
bonus the canvas will automatically update for you.
What I'm trying to get to eventually is allowing hte users to switch layers on/off, I guess if there's a more preffered way of doing this then I'd rather do that. Although, I'd rather do it from Java than use the scripting feature of SVG.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
