查看: 1212|回复: 2

worldwind2.0怎么请求本地数据

[复制链接]
发表于 2022-9-25 20:28:08 | 显示全部楼层 |阅读模式
worldwind2.0怎么请求本地数据
发表于 2022-9-25 20:38:05 | 显示全部楼层
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官网有,自己找去吧。
回复 支持 反对

使用道具 举报

发表于 2022-9-25 20:45:25 | 显示全部楼层
<?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
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 加入联盟

本版积分规则

快速回复 返回顶部 返回列表