Hello list,
i´am using the following code, to represent a map. 

  public static void main(String[] args) throws Exception {

        File file = new File("C:/Shapes/Beispiel/raster.shp");
        FileDataStore store = FileDataStoreFinder.getDataStore(file);
        SimpleFeatureSource featureSource = store.getFeatureSource();

        
        MapContext map = new DefaultMapContext();
        map.setTitle("Quickstart");
        map.addLayer(featureSource, null);

       
        JMapFrame show = new JMapFrame(map);
        show.setBounds(100, 100, 735, 610);
        show.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        show.enableStatusBar(true);
        show.enableLayerTable(true);
        show.setVisible(true);
    }

When i´m using this code, i can see a layer in the layer table, i don´t know
my misstake? can someone help me?or give me a example code?

Thanks a lot
balli

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/layertable-doesn-t-show-any-layer-tp6578260p6578260.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to