登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
轻量养虾,开箱即用!低 Token + 稳定算力,Gitee & 模力方舟联合出品的 PocketClaw 正式开售!点击了解详情~
代码拉取完成,页面将自动刷新
开源项目
>
企业应用
>
GIS/地图/导航/定位
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
119
Star
1.2K
Fork
301
火星科技
/
Mars3D三维可视化平台
代码
Issues
0
Pull Requests
0
Wiki
统计
流水线
服务
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
开发画像分析
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
Router 执行addDynamicPosition后,RectSensor该如何跟随上Router的实际位置
已关闭
#I9TFU9
需求
weight
创建于
2024-05-30 14:42
## 版本信息 版 本 号:3.7.2 Cesium版本:1.112.1 ## 问题 想在route对象绑定一个RectSensor对象, route对象执行addDynamicPosition后RectSensor对象就消失了,请问这个该如何解决。 ## 相关链接 主要代码: prepareForTakeoff() { this.droneRoute = new mars3d.graphic.Route({ polyline: { color: "#35C97F", width: 5, }, model: { url: "http://localhost:8099/mars3d-data/arrow.glb", scale: 0.05, }, }); gGraphicLayer.addGraphic(this.droneRoute); const rectSensor = new window.mars3d.graphic.RectSensor({ position: new Cesium.CallbackProperty((time) => { return this.droneRoute.position; }, false), style: { angle1: 12, angle2: 10, length: 100, pitch: 0, roll: 0, outline: true, color: "rgba(42, 127, 255, 0.25)", outlineColor: "rgba(42, 127, 255, 1)", }, }); gGraphicLayer.addGraphic(rectSensor); }, createPath(data) { const point = new mars3d.LngLatPoint( data.longitude, data.latitude, data.height ); this.droneRoute.addDynamicPosition(point, 2); }, ## 期望效果 route对象在动态移动的时候RectSensor对象也可以跟随它一起移动
## 版本信息 版 本 号:3.7.2 Cesium版本:1.112.1 ## 问题 想在route对象绑定一个RectSensor对象, route对象执行addDynamicPosition后RectSensor对象就消失了,请问这个该如何解决。 ## 相关链接 主要代码: prepareForTakeoff() { this.droneRoute = new mars3d.graphic.Route({ polyline: { color: "#35C97F", width: 5, }, model: { url: "http://localhost:8099/mars3d-data/arrow.glb", scale: 0.05, }, }); gGraphicLayer.addGraphic(this.droneRoute); const rectSensor = new window.mars3d.graphic.RectSensor({ position: new Cesium.CallbackProperty((time) => { return this.droneRoute.position; }, false), style: { angle1: 12, angle2: 10, length: 100, pitch: 0, roll: 0, outline: true, color: "rgba(42, 127, 255, 0.25)", outlineColor: "rgba(42, 127, 255, 1)", }, }); gGraphicLayer.addGraphic(rectSensor); }, createPath(data) { const point = new mars3d.LngLatPoint( data.longitude, data.latitude, data.height ); this.droneRoute.addDynamicPosition(point, 2); }, ## 期望效果 route对象在动态移动的时候RectSensor对象也可以跟随它一起移动
评论 (
10
)
登录
后才可以发表评论
状态
已关闭
新建
等待沟通
已解决
处理中
延期处理
已关闭
负责人
未设置
棉棉
mianmianwu96
负责人
协作者
+负责人
+协作者
标签
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (
-
)
标签 (
-
)
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(3)
JavaScript
1
https://gitee.com/marsgis/mars3d.git
git@gitee.com:marsgis/mars3d.git
marsgis
mars3d
Mars3D三维可视化平台
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册