Hi mistercaste <misterca...@gmail.com> wrote on 03/09/2010 10:30:18 AM:
> 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. You can do this by catching the svg 'onzoom' event and updating the stroke-width for your line elements. Updating the stroke is easiest if all the lines with the same width are in the same group. > 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. Sure you get to pick what elements you update the stroke-width on. In later versions of the spec there are easier ways to do this.