Hi guy; better keep this on the email list (rather then email me
directly).
On 17/10/2009, at 8:58 PM, dadar (via Nabble) wrote:
> thx jody
> what i want is:
> 1. how can i create array of Set<FeatureId>??
>
> i declared it like this
> Set<FeatureId> [] IDs;
> after that when i try to fill []
> IDs= new Set<FeatureId> [2];
> there is an error generic array creation
> am i wrong when i declared it?
To create a FeatureId you need to use a FilterFactory - but I think
you got that part.
The method should accept a single Set<FeatureId> (not an array of
Set<FeatureId> ). My first reply showed how to create a HashSet; do
you need more information on how to use the java collection classes;
why are you using an array?
> 2. how can i change the color of two area in map?
>
> what i mean is like in MapDisplayClass there is SelectFeature that
> change the color of the area when we click it
> is same like that but i want two area at the same time change its
> color
> i tried to change the code like this but only the last IDs that
> change the color
> how can i set the style of two area at the same time??
The example method createSelectedStyle( IDs ) is an example. Go into
that method and see how it makes a Style? You will need to make your
own Style; your Style should have two rules; one for each feature you
want to isolate for special treatment; each Rule will have a different
list of symbolizers descrbing how to draw the features that match that
Rule.
You may wish to read the StyleLayerDescriptor specification which
contains examples of how to define a style in xml.
Jody
------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users