![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
超图
大圣请转身
这个作者很懒,什么都没留下…
展开
-
Cesium绕点飞行
Cesium绕点飞行上代码, 简单点上代码, 简单点 enableRotation(position, hpr) { // this.stopRotation() hpr = hpr || {} let heading = hpr.heading || Cesium.Math.toDegrees(this.viewer.baseViewer.camera.heading) const pitch = hpr.pitch || Cesium.Math.toDegrees(this.view原创 2021-03-12 09:19:28 · 1025 阅读 · 0 评论 -
cesium 分屏对比 多窗同步
不说废话, 代码 // 视图同步 this.leftViewer.eventManager.addCameraMoveListener(e => { if (this.isLeft() && this.synchronous) { const viewPoint = this.leftViewer.getViewPoint() this.rightViewer.baseViewer.camera.setView({ destination: vi原创 2021-03-03 09:01:08 · 1651 阅读 · 3 评论 -
cesium弹窗加强版 cesium弹窗dom连接线
上图1: 创建一个热点基类export default class Hot { /** * @description id * @type {string} */ id = '' /** * 热点绑定的网格id * @type {number} */ modelId = 0 /** * 热点绑定的元素 * @type {string} */ innerHTML = '' /** * 元素 * @type原创 2021-01-28 11:43:11 · 1099 阅读 · 1 评论 -
优雅永不过时 基于Cesium搭建的sdk 1: 事件管理
Ceisum是一个庞大的三维js库, 为了项目可以快速开发, 我们可以把项目封装成sdk. 可以让项目在公司易于迭代, 公司也不是, Cesium上手有一定的难度, 团队每个成员都会cesium. 所以我们要对cesium 进行功能封装. 首先我们看看事件管理器工具 EventDispatcher/** * https://github.com/mrdoob/eventdispatcher.js/ */function EventDispatcher () {}Object.ass...原创 2021-01-11 22:03:04 · 1197 阅读 · 5 评论 -
vue 项目, 超图在编辑器里没提示 Cesium 在编辑器里没提示
编辑器里, 超图总是没提示, 好烦人 好烦人, 咋处理呢? cesium提供了一个ts我们下载好npm i @types/cesium -s-d然后然后在package.json里加上你添加的版本, 编辑器就会去ts里找cesium对象了.原创 2021-01-04 14:43:36 · 261 阅读 · 0 评论