Hello,

I'm trying to draw a shapefile, and am using the following code snippet 
to create the Style:

     StyleBuilder sb = new StyleBuilder();
    LineSymbolizer lineSymb = (LineSymbolizer) 
sb.createLineSymbolizer(Color.RED, 2);
    Style aStyle = sb.createStyle(lineSymb);
   defaultMapContext.addLayer(featureSource, aStyle);


I stole the code from a reference somewhere, and all I'm really trying 
to do is get a shapefile to display. Is this all I need to handle the 
Style method necessary for DefaultMapContext.addLayer()? If that's all I 
do, should I get all the lines displayed in red?

Best regards,

Amy

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to