上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 87 下一页
摘要: ```js // 将原来鼠标中键倾斜视图修改为鼠标右键触发 viewer.scene.screenSpaceCameraController.tiltEventTypes = [ Cesium.CameraEventType.RIGHT_DRAG, ]; // 将原来鼠标右键放大缩放修改为鼠标滚轮滚 阅读全文
posted @ 2023-05-24 09:27 槑孒 阅读(383) 评论(0) 推荐(0)
摘要: ## 实现思路 将倾斜摄影OSGB数据转换为3dtile(转换方式很多,可以利用第三方工具cesiumlab) 利用Cesium加载GIS地图,我这里使用的是天地图,可以加载其他地图都行 加载3dtile数据到地图中展示 ## 安装插件 ``` npm install cesium ``` ## 加 阅读全文
posted @ 2023-05-23 15:40 槑孒 阅读(1847) 评论(0) 推荐(0)
摘要: 首先配置CESIUM_BASE_URL全局变量 window.CESIUM_BASE_URL = import.meta.env.BASE_URL + "Cesium/"; 把node_modules\cesium\Build\Cesium这个文件夹复制到public目录下 使用 <template 阅读全文
posted @ 2023-05-23 15:07 槑孒 阅读(542) 评论(0) 推荐(0)
摘要: 在浏览器地址栏输入 [https://get.webgl.org/](https://get.webgl.org) 如果得出下面图形,就说明浏览器是支持WebGLS的,经过尝试,发现Chome浏览器,微软Edge以及搜狗浏览器都能很好的支持WebGL。 ![](https://img2023.cnb 阅读全文
posted @ 2023-05-23 14:54 槑孒 阅读(470) 评论(0) 推荐(0)
摘要: https://github.com/turban/Leaflet.Graticule import "leaflet-graticule"; L.graticule().addTo(map); 解决办法: import "leaflet-graticule"; L.LatLngGraticule. 阅读全文
posted @ 2023-05-18 11:21 槑孒 阅读(80) 评论(0) 推荐(0)
摘要: 将glTF PBR材料从规格/光泽转换为金属/原石 KHR_materials_specularKHR_materials_ior 命令行 安装 Node.js ≥14 后,打开终端运行以下命令: # install npm install --global @gltf-transform/cli 阅读全文
posted @ 2023-05-17 16:56 槑孒 阅读(470) 评论(0) 推荐(0)
摘要: JavaScript 中的 for...in 和 for...of 是两种常用的迭代循环语句。它们的用途和行为是不同的。 for...in 循环用于循环遍历对象的属性,它会遍历对象的可枚举属性和原型链上的可枚举属性。 const obj = { a: 1, b: 2 }; for (let prop 阅读全文
posted @ 2023-05-11 17:06 槑孒 阅读(31) 评论(0) 推荐(0)
摘要: while (Math.abs(lon) > 180) { lon -= Math.sign(lon) * 360 } 阅读全文
posted @ 2023-05-11 10:41 槑孒 阅读(29) 评论(0) 推荐(0)
摘要: npm i @types/testing-library__jest-dom -D 即可 Webpack 5 & Jest - Property 'toBeInTheDocument' does not exist on type 'JestMatchers' 阅读全文
posted @ 2023-05-11 00:49 槑孒 阅读(324) 评论(0) 推荐(0)
摘要: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.allowedHosts[0] should b 阅读全文
posted @ 2023-05-11 00:30 槑孒 阅读(990) 评论(0) 推荐(1)
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 87 下一页