当前位置: 首页 > news >正文

群晖nas做网站c 做网站好嘛

群晖nas做网站,c 做网站好嘛,pageadmin系统,张家港网页制作文章目录 需求分析解决 需求 Cesium 加载 geojson 文件并对文件中的属性值进行颜色设置 分析 在搜寻多种解决方案后#xff0c;最后总结出 自己的解决方案 方案一#xff0c;没看懂 var geojsonOptions {clampToGround : true //使数据贴地};var entities;promise Cesium… 文章目录 需求分析解决 需求 Cesium 加载 geojson 文件并对文件中的属性值进行颜色设置 分析 在搜寻多种解决方案后最后总结出 自己的解决方案 方案一没看懂 var geojsonOptions {clampToGround : true //使数据贴地};var entities;promise Cesium.GeoJsonDataSource.load(数据.geojson, geojsonOptions);promise.then(function (dataSource) {viewer.dataSources.add(dataSource);entities dataSource.entities.values;var colorHash {};for (var i 0; i entities.length; i) {var entity entities[i]; // 赋随机颜色var name entity.name;var color colorHash[name];if (!color) {color Cesium.Color.fromRandom({red: 1,maximumGreen: 1,maximumBlue: 1,alpha : 1.0});colorHash[name] color;}entity.polygon.material color;entity.polygon.outline false; entity.polygon.extrudedHeight 5000.0;}});viewer.flyTo(promise);参考烦方案二https://blog.csdn.net/qq_41553157/article/details/91040920 参考方案三https://blog.csdn.net/weixin_45782925/article/details/123873146 参考方案四https://blog.csdn.net/weixin_40187450/article/details/113446962 参考方案六https://blog.csdn.net/Enbir/article/details/122597412 参考方案七http://www.taodudu.cc/news/show-6244709.html?actiononClick 最后总结出了自己的解决方案如下 解决 可以遍历 GeoJSON 中的每个要素 // 加载 geojson 文件并添加至 Cesium 的 dataSource 上 promise viewer.dataSources.add(Cesium.GeoJsonDataSource.load(file.geojson));//默认是黄色 promise.then(function (dataSource) {// 获取要素中的实体const entities dataSource.entities.values;const colorHash {};//显示颜色for (let i 0; i entities.length; i) {const entity entities[i];let count entity.properties.count._value; //等级let color colorHash[count];if (count 1) {color new Cesium.Color(76 / 255, 230 / 255, 0, 1); // #4ce600} else if (count 2) {color new Cesium.Color(56 / 255, 168 / 255, 0, 1); //#38a800} else if (count 3) {color new Cesium.Color(255, 25, 25, 1); // #a8a800} else if (count 4) {color new Cesium.Color(230 / 255, 152 / 255, 0, 1); // #e69800} else if (count 5) {color new Cesium.Color(255 / 255, 255 / 255, 0, 1); // #ffff00} else if (count 6) {color new Cesium.Color(168 / 255, 0, 0, 1); // #a80000} else {color new Cesium.Color(130 / 255, 130 / 255, 130 / 255, 1); // #828282}colorHash[count] color;// 判断加载的空间数据点线面类型 赋值颜色let featureType entity.properties._geometry._value.type;if (featureType MultiPolygon) {entity.polygon.material color;} else if (featureType MultiLineString) {entity.polyline.material color;entity.polyline.width 3;} else if (featureType MultiPoint) {entity.point.material color;}} }) viewer.flyTo(promise);
http://www.hkea.cn/news/14336384/

相关文章:

  • 长沙网站制作公司地址白狐网站建设
  • 济宁市住房和城乡建设厅网站织梦技术个人网站模板
  • 做app公司一般叫什么公司seo诊断分析报告
  • 西安的商城网站新闻发布网站模板
  • 铁岭做网站包括哪些网站维护托管公司
  • 网站备案更改吗推广普通话手抄报图片
  • 苏州网站建设推广咨询平台内容管理系统WordPress
  • 做mod的网站哈尔滨网站建设一薇ls15227
  • 一级a做爰片阿v祥仔网站开发网站通过第三方微信认证登录开发费用
  • 网站建设淘宝网站为什么上传不了图片
  • 企业营销型网站建设的可行性分析wordpress营销型大气
  • 如何删除网站黑链wordpress源码导读
  • 网页设计视频网站海南移动互联网开发
  • 做招聘网站公司长春高端网站建设
  • 一个门户网站怎么做同一ip大量访问网站
  • 男人和女人做羞羞的事情网站如何申请域名空间
  • wordpress 4.9 站群网站前端设计培训
  • 网站建设运营费用包括哪些如何识别一个网站是否做的好
  • 博客做资讯类网站网站在百度上做推广怎样做
  • 网站查询功能怎么做2024年还有新冠吗
  • 在小型网站建设小组中答案免费推广软件平台seo博客
  • 简单网站建设运营wordpress跳过短代码
  • 做云购网站研发外包
  • 网站备案空间备案吗网站如何推广引流
  • 通常做网站要多久wordpress获取权限
  • 如何上传文件到网站商场设计规范
  • 有没有代做ppt的网站网店设计流程图
  • 可以做黄金期权的网站深圳搜索引擎优化收费
  • 珠海手机网站开发wordpress thegem
  • 具有价值的做pc端网站自己做网站需要学些什么