Changing stroke width at run-time

classic Classic list List threaded Threaded
3 messages Options
JesseStimpson JesseStimpson
Reply | Threaded
Open this post in threaded view
|

Changing stroke width at run-time

Hi,

Is it possible to change the stroke width of a stencil line draping feature at run-time? If possible, I'd like to be able to decrease the width of the line as the user zooms in so that it doesn't become this big fat line close to the surface.

The way Google Earth does their roads is a good example of the effect I'm looking for.

Thanks,
Jesse
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Changing stroke width at run-time

Jesse,

Well, it's *possible*, but probably inadvisable depending on how much data you have. In the stencil driver, the stroke width translates into the width of the stencil volume cap, which is constant. If you change the style the symbolizer will have to regenerate all the stencil volumes - kind of a heavyweight operation.

I believe Google Earth's roads are rasterized.

Glenn.
Glenn Waldron / Pelican Mapping
JesseStimpson JesseStimpson
Reply | Threaded
Open this post in threaded view
|

Re: Changing stroke width at run-time

Hmm ok. Once I get model features up and running in our app, I'll give it a try on a typical dataset for our users and see how slow the regeneration is.

Thanks for the help,
Jesse