Hi Micheal!
Thanks for your sample code it works well now. About the drawing I forgot to 
let you know
that I finally succeed drawing my routes on the JMapPane by exending the 
JMapPane class itself
but still need to do more by having an animated drawing as posted before. Is it 
possibe to make it with 
graph class of geotools??? I have never used it before.

Once more thanks for the label issue and still looking forward for your answer 
about the animated drawing.

Cheers!


> 
> Here is your example modified slightly...
> 
>         PolygonSymbolizer ps = sb.createPolygonSymbolizer(color1, color2, 2);
> 
>         Font font = sb.createFont("Serif", 10.0);
>         TextSymbolizer ts = sb.createTextSymbolizer(Color.BLACK, font,
> "quartier");
> 
>         Rule rule = sb.createRule(new Symbolizer[]{ps, ts});
> 
>         String typeName = ...
>         FeatureTypeStyle fts = sb.createFeatureTypeStyle(typeName, rule);
> 
>         Style newStyle = sb.createStyle();
>         newStyle.addFeatureTypeStyle(fts);
> 
>         MapLayer maplayer = new DefaultMapLayer(sourceM, newStyle);
> 
> See if that gets better results for you.
> 
> Michael
                                          
_________________________________________________________________
Achetez un nouveau PC et bénéficiez de Windows 7 dès sa sortie !
http://www.portable-windows.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

Reply via email to