WebGIS航线编辑器(无人机航线规划)

无人机航点、航线规划,实现全自动航点飞行作业及飞行航拍。禁飞区、作业区功能保障飞行安全。

GIS引擎加载

const viewer = new Cesium.Viewer("cesiumContainer", {

imageryProvider: new Cesium.IonImageryProvider({ assetId: 3872 }),

});

const imageryLayers = viewer.imageryLayers;

const nightLayer = imageryLayers.get(0);
const dayLayer = imageryLayers.addImageryProvider(
new Cesium.IonImageryProvider({
assetId: 3875,
})
);
imageryLayers.lowerToBottom(dayLayer);

GIS航线

多相机联动

GIS多相机联动

航线加载

复制代码
const czml = [
  {
    id: "document",
    name: "CZML Geometries: Polyline",
    version: "1.0",
  },
  {
    id: "redLine",
    name: "Red line clamped to terain",
    polyline: {
      positions: {
        cartographicDegrees: [-75, 35, 0, -125, 35, 0],
      },
      material: {
        solidColor: {
          color: {
            rgba: [255, 0, 0, 255],
          },
        },
      },
      width: 5,
      clampToGround: true,
    },
  },
  {
    id: "blueLine",
    name: "Glowing blue line on the surface",
    polyline: {
      positions: {
        cartographicDegrees: [-75, 37, 0, -125, 37, 0],
      },
      material: {
        polylineGlow: {
          color: {
            rgba: [100, 149, 237, 255],
          },
          glowPower: 0.2,
          taperPower: 0.5,
        },
      },
      width: 10,
    },
  },
  {
    id: "orangeLine",
    name:
      "Orange line with black outline at height and following the surface",
    polyline: {
      positions: {
        cartographicDegrees: [-75, 39, 250000, -125, 39, 250000],
      },
      material: {
        polylineOutline: {
          color: {
            rgba: [255, 165, 0, 255],
          },
          outlineColor: {
            rgba: [0, 0, 0, 255],
          },
          outlineWidth: 2,
        },
      },
      width: 5,
    },
  },
  {
    id: "purpleLine",
    name: "Purple arrow at height",
    polyline: {
      positions: {
        cartographicDegrees: [-75, 43, 500000, -125, 43, 500000],
      },
      material: {
        polylineArrow: {
          color: {
            rgba: [148, 0, 211, 255],
          },
        },
      },
      arcType: "NONE",
      width: 10,
    },
  },
  {
    id: "dashedLine",
    name: "Blue dashed line",
    polyline: {
      positions: {
        cartographicDegrees: [-75, 45, 500000, -125, 45, 500000],
      },
      material: {
        polylineDash: {
          color: {
            rgba: [0, 255, 255, 255],
          },
        },
      },
      width: 4,
    },
  },
];

const dataSourcePromise = Cesium.CzmlDataSource.load(czml);
viewer.dataSources.add(dataSourcePromise);

感兴趣的可以留言或发邮件 1985692469@qq.com,欢迎一起交流!

相关推荐
晴殇i1 分钟前
前端视角下的单点登录(SSO)从原理到实战
前端·面试·trae
圆心角3 分钟前
深入解析协商缓存(弱缓存)
前端·浏览器
鹏北海13 分钟前
vue-route-query-hook:一个用于 Vue 3 的 Composable,提供响应式参数与 URL 查询参数之间的双向同步功能
前端·javascript·vue.js
VisuperviReborn24 分钟前
打造自己的前端监控---前端接口监控
前端·javascript·架构
程序员海军24 分钟前
这才是Coding该有的样子!重新定义编程显示器
前端·后端
阳树阳树25 分钟前
小程序鉴权机制分析
前端
BUG收容所所长25 分钟前
如何用React打造一个完整的移动端问卷调查应用?
前端·react.js·开源
Cache技术分享27 分钟前
151. Java Lambda 表达式 - 使用 Consumer 接口处理对象
前端·后端
YGY_Webgis糕手之路28 分钟前
OpenLayers 综合案例-加载gif图
前端·gis
小高00730 分钟前
🚀前端性能优化实录:把 5 秒白屏降到 1.2 秒,只做 7 件事
前端·javascript·面试