Hello Dan, Assuming that you have features in a MapLayer you can change colours, and other display attributes such as size, opacity and labels, by changing the Style linked to the layer...
Style newStyle = ... myMapLayer.setStyle( newStyle ); If you are displaying your features with JMapPane, or another class that listens to events sent by MapLayers and the MapContext, you should see the features repainted automagically. If you're not familiar with creating and modifying Styles please have a look these examples pages... Style Lab: http://geotools.org/examples/stylelab.html Style Function Lab: http://geotools.org/examples/stylefunctionlab.html Then get back to us if you need more info. Hope this helps, Michael ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
