hmm can you give me an example code for it? from what you write you tell me to make another rule beside selectedrule and otherrule in createselectedrule method right? then after i create another rule how i set it in IDs?? selectedRule.setFilter(ff.id(selectedIDs)); that is to set the rule for the feature right? to set the rule i want in IDs and IDs2 i must do it like this: Rule1.setFilter(ff.id(IDs)); Rule2.setFilter(ff.id(IDs2)); but the IDs and IDs2 is in selectedIDs so how i set it. that's what i mean
Darmawan mbedward wrote: > >> i can't do that michael. i combine it because i want to display it both >> in >> map at the same time so i must set the style at the same time to repaint >> it >> in displayselectedfeature. do you get what my point? >> > > Yes, I understand what you're trying to achieve but it sounds like > you're confused about combining IDs into a set and combining rules > into a style. > > For each category of features that you want to be rendered in a given > colour your provide a rule with a filter for the feature IDs and a > symbolizer describing how to draw the features. All of your rules are > then combined into a single Style object. It's just an extension of > what you see in the example code where there are only two rules being > used: selected and other. > > I hope that makes it more clear for you. > > Michael > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > -- View this message in context: http://n2.nabble.com/Get-the-data-from-Info-tools-in-MapDisplayLab-tp3843728p3848079.html Sent from the geotools-gt2-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
