Hi Dan, > Thank you for the response. My MapLayer has multiple features on it, I'd like > to update the > styles for certain features and leave other features alone. Is there a way to > update individual > features on a mapLayer?
Yes, it's quite possible and you can do it in different ways. I guess that the most common approach is to use a Style containing two Rules, each of which contains a Symbolizer to define how features are drawn. The first Rule has a condition that matches the features that you want to pick out (for highlight colour or whatever). The second Rule is a catch-all for features that aren't processed by the first Rule. The Selection Lab page uses that approach to draw selected features with bright yellow fill colour... http://geotools.org/examples/selectionlab.html In particular, this section... http://geotools.org/examples/selectionlab.html#creating-a-style-based-on-the-selection That example is using the IDs of features for the rule condition but you can use other feature attributes instead. Hope that makes sense. 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
