I have the same problem with a svg map system. I have some strokes which define the edges of a path.
The stroke should be zoom-invariant, but only for some elements on the map (e.g. a highway must be zoom-invariant, but not the minor roads or street names which have to be visible only on high zoom levels). The feature requested isn't a level of detail (LOD). In the code below I define the properties of the Element highway: highway.setAttributeNS(null, "stroke", "green"); highway.setAttributeNS(null, "stroke-width", "5");// THIS MUST BE INVARIANT highway.setAttributeNS(null, "marker-end", "url(#" + KINDOFROAD + "1) "); How could I do to implement this feature? I searched everywhere, please help. Javid Alimohideen-2 wrote: > > Hi, > Can someone tell me if it possible to restrict the scale of some g or path > elements? For example, If I zoom in/out, I want to preserve the scale size > of certain elements. > > Thanks, > Javid > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > -- View this message in context: http://www.nabble.com/Preserve-scale-size-of-certain-elements-tp3171259p23138230.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]
