cesium加载批量模型

 class CreateModel {constructor() { }// 添加单条数据addEntity(item) {// 删除实体// viewer.entities.removeAll();// 添加实体位置var position = Cesium.Cartesian3.fromDegrees(...item.latLon,item.height);//弧度的航向分量。var heading = Cesium.Math.toRadians(135);//弧度的螺距分量。var pitch = 0;//滚动分量(以弧度为单位)var roll = 0;//HeadingPitchRoll旋转表示为航向,俯仰和滚动。围绕Z轴。节距是绕负y轴的旋转。滚动是关于正x轴。var hpr = new Cesium.HeadingPitchRoll(heading, pitch, roll);var orientation = Cesium.Transforms.headingPitchRollQuaternion(position,hpr);//实体var entity = viewer.entities.add({name: item.url,position: position,orientation: orientation,model: {uri: item.url,//不管缩放如何,模型的最小最小像素大小。minimumPixelSize: 10000,//模型的最大比例尺大小。 minimumPixelSize的上限。maximumScale: 20000,},});viewer.trackedEntity = entity;// 获取或设置相机当前正在跟踪的Entity实例。}}const createModel = new CreateModel();// data是模型资源的数据const data = [{ url: '/model/untitled.glb', latLon: [114.35850419018853, 38.914157063533844], height: 50},{ url: '/model/untitled.glb', latLon: [116.35850419018553, 39.914157063534844], height: 50},{url: '/model/untitled.glb', latLon: [116.35850419018553, 39.914157063534844], height: 50},{url: '/model/untitled.glb', latLon: [117.55850419018553, 39.914157063534844], height: 50},{url: '/model/untitled.glb', latLon: [118.85850419018553, 39.914157063534844], height: 50},{url: '/model/untitled.glb', latLon: [113.41850419018553, 39.914157063534844], height: 50},{url: '/model/untitled.glb', latLon: [112.45850419018553, 39.914157063534844], height: 50},{url: '/model/untitled.glb', latLon: [111.55850419018553, 39.914157063534844], height: 50},{url: '/model/untitled.glb', latLon: [116.35850419018553, 31.914157063534844], height: 50},{url: '/model/untitled.glb', latLon: [117.55850419018553, 32.914157063534844], height: 50},{url: '/model/test.glb', latLon: [118.85850419018553, 33.914157063534844], height: 50},{url: '/model/test.glb', latLon: [113.41850419018553, 34.914157063534844], height: 50},{url: '/model/untitled6.glb', latLon: [116.35850419018553, 39.914157063534844], height: 50},{url: '/model/untitled.glb', latLon: [111.55850419018553, 39.914157063534844], height: 50},];// 循环数据data.forEach((item, i) => {// item是数组中的单条createModel.addEntity(item)});

cesium加载批量模型相关推荐

  1. cesium加载 gltf模型

    cesium加载 gltf模型 首先自己配置一个iis环境 :http://www.xitongcheng.com/jiaocheng/win10_article_60912.html,其他环境 比如 ...

  2. Cesium加载3Dtiles模型-大疆智图

    Cesium加载3Dtiles模型 Cesium加载3Dtiles模型步骤: (一)如果您使用的是大疆智图,则该软件可以直接输出3Dtiles格式(B3DM切片)的数据,如图所示: var viewe ...

  3. Cesium加载建筑物模型(shp转Geojson\3Dtiles)

    本文主要介绍cesium加载Geojson和3dtile格式的建筑物模型文件,除此之外还介绍了Cesium工具栏的屏蔽方法.天地图的加载.地球初始状态设置等几个部分的内容,其中又不乏参照.优化诸如:  ...

  4. cesium加载BIM模型

    自己尝试用cesium引擎加载BIM模型,操作步骤如下: 第一步: 下载一个BIM模型 第二步: 将BIM模型转换成FBX格式 转成gltf格式 在如下网站进行转换: https://products ...

  5. cesium加载3dtiles模型贴图到地图

    <template><div id="cesiumContainer"> </div> </template><script& ...

  6. cesium 加载bim模型_构建统一CIM数字底盘,实现基于BIM的全流程管控

    ▲点击关注,收获更多GIS精彩 2009年,SuperMap发布了首款二三维一体化GIS软件,首次提出了二三维一体化GIS技术.随后,二三维一体化的应用系统不断涌现,二三维一体化技术逐步成为三维GIS ...

  7. cesium加载CAD模型(.dwg)

    1.用3dmax软件将dwg文件转成obj格式 2.用cesium自带的obj2gltf工具转成(或cesiumlab的个人模型切片工具) 3. 转载于:https://www.cnblogs.com ...

  8. 37.(cesium之家)cesium加载gltf模型(贴地)

    听老人家说:多看美女会长寿 cesium之家总目录(订阅之前建议先查看该博客) 文章末尾处提供保证可运行完整代码包,运行如有问题,可"私信"博主. 效果如下所示: 该示例运行需要下 ...

  9. Cesium.js 加载3D模型

    一.Cesuimjs介绍 Cesiunjs是一套GIS行业中进行地图渲染的js库,该库使用的WebGL进行地图渲染.并且结合HTML5进行相应,从而实现3D中渲染地图.本篇文章则介绍如何将后缀名为ma ...

最新文章

  1. 第一次使用Android Studio时你应该知道的一切配置(三):gradle项目构建
  2. Android 测量调用方法耗时的方法
  3. C#.NET通过Socket实现平行主机之间网络通讯(含图片传输的Demo演示)
  4. day19 生成器函数
  5. log4j配置文件说明
  6. 用dsp的c54x汇编语言编写4位数的按位输出和计算,DSP实验三实验四(精).doc
  7. clickhouse 部署+介绍
  8. vim 插件安装 (ubuntu OS)
  9. RecyclerView+Retrofit+OkHttp+RxJava
  10. ESXi OEM版本下载地址
  11. TOYOTA MOTOR CORPORATION Programming Contest 2022(AtCoder Beginner Contest 270) AB题解
  12. 插了T管引流,该注意点啥
  13. netty: LEAK: ByteBuf.release() was not called before it‘s garbage-collected
  14. 三年功能测试转型自动化测试,月薪涨到了25k,是怎么做到的?
  15. 如何用Jquery获取某一个Div的Class或者ID
  16. 微软杀毒软件Microsoft Security Essentials 今起可下载
  17. 伯克利文理学院的计算机课程,美国计算机专业四强----加州伯克利分校
  18. linux查看当前文化大小,Linux锐速当前连接数等状态查询
  19. Multiple actions were found that match the request
  20. 大型医院分诊系统源码 排队叫号系统源码 C#源码

热门文章

  1. mysql多值存储过程_mysql使用存储过程回来多个值
  2. 中value大小_如何在Spring/SpringBoot 中做参数校验?你需要了解的都在这里!
  3. Ajax案例-基于XML,以POST方式,完成省份-城市二级下拉联动
  4. 软件测试人员应具备的素质
  5. getline()函数的使用
  6. 【二分图】洛谷P2055假期的宿舍
  7. iOS中AutoLayout自动布局,自适应高度
  8. 世界末日倒计时 js代码
  9. 浅析HandlerThread
  10. 大华股份2021年的半年报