上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 78 下一页
摘要: ## 实现思路 将倾斜摄影OSGB数据转换为3dtile(转换方式很多,可以利用第三方工具cesiumlab) 利用Cesium加载GIS地图,我这里使用的是天地图,可以加载其他地图都行 加载3dtile数据到地图中展示 ## 安装插件 ``` npm install cesium ``` ## 加 阅读全文
posted @ 2023-05-23 15:40 槑孒 阅读(1205) 评论(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 槑孒 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 在浏览器地址栏输入 [https://get.webgl.org/](https://get.webgl.org) 如果得出下面图形,就说明浏览器是支持WebGLS的,经过尝试,发现Chome浏览器,微软Edge以及搜狗浏览器都能很好的支持WebGL。 ![](https://img2023.cnb 阅读全文
posted @ 2023-05-23 14:54 槑孒 阅读(258) 评论(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 槑孒 阅读(39) 评论(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 槑孒 阅读(255) 评论(0) 推荐(0) 编辑
摘要: JavaScript 中的 for...in 和 for...of 是两种常用的迭代循环语句。它们的用途和行为是不同的。 for...in 循环用于循环遍历对象的属性,它会遍历对象的可枚举属性和原型链上的可枚举属性。 const obj = { a: 1, b: 2 }; for (let prop 阅读全文
posted @ 2023-05-11 17:06 槑孒 阅读(15) 评论(0) 推荐(0) 编辑
摘要: while (Math.abs(lon) > 180) { lon -= Math.sign(lon) * 360 } 阅读全文
posted @ 2023-05-11 10:41 槑孒 阅读(22) 评论(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 槑孒 阅读(286) 评论(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 槑孒 阅读(641) 评论(0) 推荐(1) 编辑
摘要: 解决方法,命令行输入以下命令后重启即可。 net stop winnat net start winnat 阅读全文
posted @ 2023-05-10 23:55 槑孒 阅读(90) 评论(0) 推荐(0) 编辑
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 78 下一页