Hi Dan, You use a Style for rendering the points that includes a TextSymbolizer to control how labels are displayed.
Your Style can be defined in an SLD document or be created programmatically. The StyleLab example introduces both methods... http://geotools.org/examples/stylelab.html Although it doesn't get into labelling it illustrates the basic concepts and how to link a Style to your features in a MapLayer. A quick way of creating a Style with labels programmatically is to use the SLD helper class createPointStyle method... http://geotools.org/javadocs/org/geotools/styling/SLD.html#createPointStyle(java.lang.String,%20java.awt.Color,%20java.awt.Color,%20float,%20float,%20java.lang.String,%20org.geotools.styling.Font) Styling is a really big topic and I always feel I'm in the lower foothills of the learning curve :) I've kept this answer brief rather than loading you up with links to detailed info, but if you need more detail please ask. Michael ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
