摘要: import { JSEncrypt } from 'jsencrypt' // 加密公钥 const key = ` ` // 加密 export function setEncrypt (msg) { const jsencrypt = new JSEncrypt() jsencrypt.set 阅读全文
posted @ 2020-05-27 10:50 小小李的世界 阅读(27209) 评论(0) 推荐(1) 编辑
摘要: import Cesium from 'cesium/Cesium' /* 流动纹理线 color 颜色 duration 持续时间 毫秒 */ function PolylineTrailLinkMaterialProperty (color, duration) { this._definiti 阅读全文
posted @ 2020-05-27 10:36 小小李的世界 阅读(8290) 评论(1) 推荐(1) 编辑
摘要: let fanModel = { uri: 'model3D/fan.glb', // glb实例模型 height: 85, scaling: 160.05, heading: 90, pitch: 90, roll: 0 } let position = Cesium.Cartesian3.fr 阅读全文
posted @ 2020-05-27 10:34 小小李的世界 阅读(2099) 评论(0) 推荐(0) 编辑
摘要: 1、npm install cesium 2、build / webpack.base.conf.js文件下做如下更改: const cesiumSource = '../node_modules/cesium/Source' output: { ... sourcePrefix: '' }, am 阅读全文
posted @ 2020-05-27 10:31 小小李的世界 阅读(11163) 评论(1) 推荐(0) 编辑
摘要: 1 class SocketPlugin { 2 constructor (param) { 3 this.websocket = null 4 this.isConnect = false 5 this.timeoutNum = null 6 this.isActivelyClose = fals 阅读全文
posted @ 2020-05-27 10:25 小小李的世界 阅读(2221) 评论(0) 推荐(0) 编辑
摘要: 设置视角: this.viewer.camera.setView({ destination: Cesium.Rectangle.fromDegrees( this.position.west, this.position.south, this.position.east, this.positi 阅读全文
posted @ 2020-05-27 10:22 小小李的世界 阅读(3214) 评论(0) 推荐(0) 编辑