从2.0升级到2.1
模块引入问题
作为module载入intellij中,删除对xerces_2_5_0.jar的引用
代码修订
package gov.nasa.worldwindx.applications.worldwindow.features.swinglayermanager
1.LayerManagerPanel
private LayerTree layerTree;
private boolean on = false;
变为 protected
package gov.nasa.worldwind.layers.mercator
主要用于对MercatorTiledImageLayer图层数据的批量下载
1.BasicMercatorTiledImageLayer
private static class DownloadPostProcessor implements
变为public
该类中的private final MercatorTextureTile tile;变更为protected
private final Object fileLock = new Object();
变为public
private boolean isTextureExpired(
变为public
2.MercatorTiledImageLayer
private final LevelSet levels;
变为protected
protected LevelSet getLevels()
变为public
public int computeLevelForResolution(Sector sector, Globe globe,
double resolution)
注释掉参数Globe globe及其后的内容
if (globe == null)
{
String message = Logging.getMessage(“nullValue.GlobeIsNull”);
Logging.logger().severe(message);
throw new IllegalStateException(message);
}
package gov.nasa.worldwind
主要用于自定义模型中,如果不需要自定义模型,没有必要进行修订
1.BasicModel
构造函数中,
if (globeName == null)
return;
变更为
if (globeName == null || globeName == “”)
return;