Cesium Gis 常用标绘功能箭头

alt

GIS 标绘主要体现: 1.反映战场地理环境的空间结构;完成态势图标绘、选择进攻路线、合理配置兵力、选择最佳瞄准点和打击核心、分析爆炸等级、范围、破坏程度、射击诸元等。 2.如海湾战争中,美国利用GIS模拟部队和车辆机动性、估算了化学武器扩散范围、模拟烟雾遮蔽战场的效果、提供水源探测所需点位、评定地形对武器性能的影响,为军事行动提供决策依据。 3.美国陆军测绘工程中心还在工作站上建立了GIS和RS的集成系统,及时的(不超过4小时)将反映战场现状的正射影像图叠加到数字地图上,数据直接送到前线指挥部和五角大楼,为军事决策提供24小时服务。 4.科索沃战争中,利用3S高度集成技术,使打击目标更精准有效。

一般我们常用的箭头直线,燕尾,贝塞尔曲线箭头等;在使用时候可以借鉴别人封装好的数学库进行二次的开发;

toolbar.addListener('polygonCreated', function (event) {

let polygon = new DrawHelper.PolygonPrimitive({
    positions: event.positions,
    custom:event.custom,
    material: Cesium.Material.fromType(Cesium.Material.ColorType)
});
scene.primitives.add(polygon);
polygon.setEditable();
polygon.addListener('onEdited', function (event) {});

}); toolbar.addListener('tailedAttackCreated', function (event) { var polygon = new DrawHelper.TailedAttackPrimitive({ positions: event.positions, custom:event.custom, material: Cesium.Material.fromType(Cesium.Material.ColorType) }); scene.primitives.add(polygon); polygon.setEditable(); polygon.addListener('onEdited', function (event) {});

}); // 绘制直线箭头 toolbar.addListener('straightArrowCreated', function (event) { var arrow = event.arrow; var straightArrowPrimitive = new DrawHelper.StraightArrowPrimitive({ arrow: arrow, material: Cesium.Material.fromType(Cesium.Material.ColorType) }); scene.primitives.add(straightArrowPrimitive); straightArrowPrimitive.setEditable(); straightArrowPrimitive.addListener('onEdited', function (event) {}); });

调用的代码:

上面粘贴了几个常用 的调用方式,关注公众号 凌vs云 获取源码地地址回复 "标绘 " 两个字即可

项目的源码和示例全部打包好了

项目可以直接跑:

也可以直接嵌入vue 中使用方便,里面的注释我也添加了 感谢各位关注!

本文由 mdnice 多平台发布

猜你喜欢

转载自blog.csdn.net/weixin_41932086/article/details/128633512
GIS