Hi Thomas, I make the changes in the UpdateManager Thread and my document is ALWAYS_DYNAMIC. In the meantime I've found the cause of the problem, but I don't understand why it works so. I created the <use> tag inside a <g> tag. If I don't put the <use> tag into the <g> tag the icon is displayed.
Regards, Tamas -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 2006. január 5. 14:06 To: [email protected] Subject: Re: referred <def> element is not displayed Hi Tamás, Gorzsás Tamás <[EMAIL PROTECTED]> wrote on 01/05/2006 07:01:10 AM: > I'm dealing with maps which are available in SVG format. > I have to put icons onto the map in runtime. The icons are available in > separated SVG files. [...] > Element trainImage = canvas.getSVGDocument(). > createElementNS(SVGDOMImplementation.SVG_NAMESPACE_URI, SVGConstants.SVG_USE_TAG); > trainImage.setAttributeNS(XMLConstants.XLINK_NAMESPACE_URI, "xlink:href", > "#train-1-purple"); > Is it a bug in Batik or do I something wrong? I would suspect that you have either not informed the Canvas that the document will be dynamic (search for ALWAYS_DYNAMIC), or you are not making your changes in the UpdateManager Thread. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
