From: ballibum <bal...@we...> - 2011-07-13 08:52:36
|
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. |