Erdem Gunay ha scritto:
> Hello,
>
> I am trying to set the tickness of a line dynamically
> based on the zoom factor. For example, when the user
> zooms in the map, the lines should be drawn ticker,
> when zooming out, thinner. I use styledMapPane. Can i
> do this in GeoTools? Does anybody have an idea?
>   
Well, as far as I know you can't set the thickness as a linear function 
of the
scale, but using the sld rules you can build a piecewise relation.
That is, something like:
1.000.000 < scaleDenominator -> thickness = 1
500.000 < scaleDenominator <= 1.000.000 -> thickness = 2
...

Have a look at the SLD specification and how to use the "rules" inside it.
Cheers
Andrea

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to