worldwind2.0怎么请求本地数据
worldwind2.0怎么请求本地数据 var layers = [/*{
layer: new WorldWind.BMNGOneImageLayer(),
enabled: true
},*/
{
layer: new WorldWind.BMNGRestLayer(null, "./standalonedata/Earth/BlueMarble256/",null,new Date("2004-08")),
enabled: true
},
/* {
layer: new WorldWind.LandsatRestLayer(null, "./standalonedata/Earth/Landsat"),
enabled: true
},
{
layer: new WorldWind.BMNGLandsatLayer(),
enabled: true
},*/
/*{
layer: new WorldWind.ShowTessellationLayer(), //网格线
enabled: true
},*/
{
layer: new WorldWind.CompassLayer(), //罗盘
enabled: true
},
{
layer: new WorldWind.CoordinatesDisplayLayer(wwd), //鼠标坐标
enabled: true
},
{
layer: new WorldWind.ViewControlsLayer(wwd), //控制插件
enabled: true
},
{
layer: new WorldWind.FrameStatisticsLayer(wwd),
enabled: true
}
];以上是layer的创建。BlueMarble256和Landsat是放置图片的目录。图片下载在NASA官网有,自己找去吧。 <?xml version="1.0" encoding="utf-8"?>
<LayerSet Name="Clart Test" ShowOnlyOneLayer="false" ShowAtStartup="true" xmlns:xsi="" xsi:noNamespaceSchemaLocation="LayerSet.xsd">
<ModelFeature ShowAtStartup="true">
<Name>Tiny1</Name>
<DistanceAboveSurface>160.0</DistanceAboveSurface>
<Latitude>
<Value>39.93</Value>
</Latitude>
<Longitude>
<Value>116.400002</Value>
</Longitude>
<ScaleFactor>2</ScaleFactor>
<MeshFilePath>Data\Model\tiny.x</MeshFilePath>
<Orientation>
<RotationX>0.0</RotationX>
<RotationY>90.0</RotationY>
<RotationZ>90.0</RotationZ>
</Orientation>
<MaxViewRange>10000.0</MaxViewRange>
<MinVie
页:
[1]