摘要: 理解要点: 1,函数定义时的作用域到函数执行时作用域依然有效。函数的执行依赖于变量的作用域。 2,讲作用域链描述为一个对象列表,每次调用js函数的时候,都会为之创建一个新的对象来保存局部变量,把这个对象添加至作用域链中,当函数返回的时候,如果不存在嵌套函数,也没有其它引用指向这个这个绑定的对象,就会 阅读全文

posted @ 2019-09-02 14:52 博客sl 阅读(194) 评论(0) 推荐(0) 编辑

2023年9月7日

摘要: captureScreenshot() { const { viewer } = this.state const { when } = Cesium; const deferred = when.defer(); const scene = viewer.scene; var removeCall 阅读全文

posted @ 2023-09-07 16:41 博客sl 阅读(235) 评论(0) 推荐(0) 编辑

2023年8月25日

摘要: https://blog.csdn.net/tech2ipo/article/details/124369020 阅读全文

posted @ 2023-08-25 14:46 博客sl 阅读(131) 评论(0) 推荐(0) 编辑

2023年7月20日

摘要: polygon 加outline最多只能是1px,定义宽度得用polyline env_draw_polygon(options = {}) { let e = options.e; console.log('draw_polygon 3333', options); let defaultLoca 阅读全文

posted @ 2023-07-20 10:41 博客sl 阅读(411) 评论(0) 推荐(0) 编辑

摘要: renderTargetCamera() { const { viewer } = this.state const _this = this viewer.camera.moveEnd.addEventListener(function () { const { gpsamera, cameraH 阅读全文

posted @ 2023-07-20 10:37 博客sl 阅读(294) 评论(0) 推荐(0) 编辑

2023年7月4日

摘要: var viewer = new Cesium.Viewer('cesiumContainer', { orderIndependentTranslucency: false, contextOptions: { webgl: { alpha: true, } }, }); viewer.scene 阅读全文

posted @ 2023-07-04 16:46 博客sl 阅读(219) 评论(0) 推荐(0) 编辑

2023年5月5日

摘要: 配置请求域名,有umirc.ts文件可以直接在该文件加 proxy: { '/api': { // 检测域名后面带 /api/ 的路径 target: 'http://192.168.0.90', // 要请求的域名或IP地址 'changeOrigin': true, // 'pathRewrit 阅读全文

posted @ 2023-05-05 11:14 博客sl 阅读(14) 评论(0) 推荐(0) 编辑

2023年3月9日

摘要: cesium 版本降级到, 1.79.1 打包成功,1.9以上报错可能缺少loader或其它报错 测试可以用的版本1.79.1,1.84,1.9, 卷帘的方法比较旧的版本用 viewer.scene.imagerySplitPosition,后面新的viewer.scene.SplitDirecti 阅读全文

posted @ 2023-03-09 17:13 博客sl 阅读(134) 评论(0) 推荐(0) 编辑

2023年2月23日

摘要: 一,颜色格式 const line2= new Cesium.Primitive({ geometryInstances: new Cesium.GeometryInstance({ geometry: new Cesium.PolylineGeometry({ // positions: Cesi 阅读全文

posted @ 2023-02-23 17:23 博客sl 阅读(787) 评论(0) 推荐(0) 编辑

2023年2月3日

摘要: 刚开始也是按官网的操作,报You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file错误,然后试图配置config.js 文 阅读全文

posted @ 2023-02-03 17:36 博客sl 阅读(112) 评论(0) 推荐(0) 编辑

2022年12月2日

摘要: 阅读全文

posted @ 2022-12-02 16:22 博客sl 阅读(12) 评论(0) 推荐(0) 编辑