Hi
I need a constant stroke size for some elements when I zoom on the
JSVGCanvas.

I'm writing a map system for a GIS and the roads should have always the same
size, independently by the zoom level applied. Actually when I zoom-in the
stroke gets bigger proportionally to the zoom level applied, so at a certain
level the whole screen is occupied by the line on which I zoomed over.

However the stroke invariant shouldn't be applied to every element in my SVG
document, because there are also other elements which I need to treat
differently.

I think this is possible, because instruments which use Batik like the
GeoTools library have this feature, but I don't know how to implement it
(and to determine how GeoTools does it it's quite hard).

I tried with the DOM functionalities, but now I am quite convinced that
right way is to work through the Java2D Graphics2D class. However I don't
have much experience on Java2D.

Any hints? Hope to have explained clearly my problem.


Thanks.




-- 
View this message in context: 
http://old.nabble.com/Stroke-size-tp27837302p27837302.html
Sent from the Batik - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to