安装方法和geoserver安装在tomcat上面一模一样,首先把war包放在tomcat的webapp下面。然后直接运行tomcat。在worldwind加载的js文件里面加上
//Add WMS imagery
var serviceAddress="http://localhost:8080/geoserver/nasa/wms/wms?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.3.0";
var layerName = "world_topo_bathy_lowres";
var createLayer = function (xmlDom) {
var wms = new WorldWind.WmsCapabilities(xmlDom);
var wmsLayerCapabilities = wms.getNamedLayer(layerName);
var wmsConfig = WorldWind.WmsLayer.formLayerConfiguration(wmsLayerCapabilities);
var wmsLayer = new WorldWind.WmsLayer(wmsConfig);
wwd.addLayer(wmsLayer);
就可以加载本地离线worldwindWeb服务了
1