IlvMapDataSourceModel dataSourceModel = IlvMapDataSourceProperty.GetMapDataSourceModel(manager); dataSourceModel.insert(source);
dataSourceModel.start();
source.start();
IlvMapLayer layer = dataSource.getInsertionLayer(); layer.setName("name in layer tree panel");
layer.getStyle().setAttribute(IlvPolylineStyle.FOREGROUND,Color.black); layer.getStyle().setAttribute(IlvPolylineStyle.BACKGROUND,new Color(1,1,1,0.25f));
IlvMapLayerTreeModel ltm = IlvMapLayerTreeProperty.GetMapLayerTreeModel(manager); ltm.addChild(parent, layer);
IlvMapLayer parent = ltm.findChildLayer(null,"my parent"); if(parent==null) { parent = new IlvMapLayer(); parent.setName("my parent"); IlvMapCompositeStyle parentStyle= new IlvMapCompositeStyle(); parent.setStyle(parentStyle); ltm.addChild(null, parent); }