Reloading all data sources

If you have created an instance of IlvSDMEngine (even empty) in your manager.
To reload the data, you can simply write:
engine.loadData();
In case you do not want, or do not need, a symbol management utility, you can use the following code to reload your data:
To reload without using an IlvSDMEngine
  1. Retrieve the data source model root :
    DefaultMutableTreeNode root = (DefaultMutableTreeNode) dsm.getRoot();
    
  2. Retrieve the map layers attached to each of the data sources:
    int count = root.getChildCount();
    for (int i = 0; i < count; i++) {
     DefaultMutableTreeNode node = (DefaultMutableTreeNode) root.getChildAt(i);
     IlvMapDataSource source = (IlvMapDataSource) node.getUserObject();
     IlvMapLayer mlayer = source.getInsertionLayer();
    
  3. Restart each data source ensuring that the tile manager updates the visible part of the view for data sources containing tiled layers:
     source.reset();
     source.start();
     IlvManagerLayer layer = mlayer.getManagerLayer();
     if (layer instanceof IlvTiledLayer) {
       ((IlvTiledLayer) layer).getTileController().updateView(getView());
     }