for (int il=0;il<manager.getLayersCount();il++) { IlvManagerLayer layer = manager.getManagerLayer(il); if (layer instanceof IlvTiledLayer) { IlvTileLoader loader = ((IlvTiledLayer) layer).getTileLoader(); if (loader instanceof IlvThreadedTileLoader) { ((IlvThreadedTileLoader) loader).dispose(); } } }
IlvMapLayerTreeModel model = IlvMapLayerTreeProperty.GetMapLayerTreeModel(manager); model.clearAllObjects(); while (manager.getLayersCount() > 0) { manager.removeLayer(0, false); } manager.removeNamedProperty(IlvMapLayerTreeProperty.NAME);
manager.removeNamedProperty(IlvMapDataSourceProperty.NAME);
manager.removeNamedProperty(IlvAreasOfInterestProperty.NAME);
manager.removeNamedProperty(IlvMapStyleControllerProperty.NAME);
IlvRasterTemporaryFileManager.removeAllFiles();