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

找兼职h5网站开发人员免费的seo

找兼职h5网站开发人员,免费的seo,铁岭网站建设公司,很简单的做设计的网站cesium加载多个小立方体&#xff0c;组合拼成一个大立方体。 地理坐标拼合的大立方体有错位问题。必须进行坐标转换。 <template><div class"map"><div id"mapContainer" ref"mapContainer" class"map-container">&…

 cesium加载多个小立方体,组合拼成一个大立方体。

地理坐标拼合的大立方体有错位问题。必须进行坐标转换。

 

<template><div class="map"><div id="mapContainer" ref="mapContainer" class="map-container"></div><div class="map-other"><Steps progress-dot :current="currentVal" @change="changeStepsEvt"><Step title="1"></Step><Step title="2"></Step><Step title="3"></Step><Step title="4"></Step></Steps></div></div>
</template>
<script lang="ts" setup>
import { onMounted, ref } from 'vue';
import { Steps, Step } from 'ant-design-vue';
import * as THREE from 'three';
import { log } from 'console';
const currentVal = ref(0);
const win: AnyObject = window;
const Cesium = win.Cesium;
let viewer: any,cubeEntity: any = {};
let count = 0;
const init = () => {viewer = new Cesium.Viewer('mapContainer', {animation: false, //动画小部件baseLayerPicker: false, //地图图层组件infoBox: false, //信息框selectionIndicator: false, //选取指示器组件});// 获取CreditDisplay实例let creditDisplay = viewer.scene.frameState.creditDisplay;// 隐藏所有logocreditDisplay.show = false;// 立方体的边长const cubeSize = 100.0; // 100米边长// 第一个立方体的位置(成都经纬度,100米高度)const longitude = 104.0668;const latitude = 30.5728;const height = 100;const position1 = Cesium.Cartesian3.fromDegrees(longitude,latitude,height,);// 将地理坐标转换为局部坐标系const ellipsoid = viewer.scene.globe.ellipsoid;const origin = Cesium.Transforms.eastNorthUpToFixedFrame(position1,ellipsoid,);for (let i = 0; i < 3; i++) {for (let j = 0; j < 3; j++) {for (let k = 0; k < 3; k++) {const offset = new Cesium.Cartesian3(cubeSize * i,cubeSize * j,cubeSize * k,); // 在X轴上偏移const position = Cesium.Matrix4.multiplyByPoint(origin,offset,new Cesium.Cartesian3(),);cubeEntity[count] = viewer.entities.add({name: `Cube-${i}-${j}-${k}`,position: position,box: {dimensions: new Cesium.Cartesian3(cubeSize,cubeSize,cubeSize,),// material: Cesium.Color.fromRandom({ alpha: 1 }), // 半透明的蓝色material: Cesium.Color.fromBytes(177, 0, 4, 200), // 半透明的蓝色outline: true,outlineColor: Cesium.Color.WHITE,outlineWidth: 2,},});count++;}}}// 将视角调整到立方体的中心// viewer.zoomTo(viewer.entities);viewer.camera.flyTo({destination: Cesium.Cartesian3.fromDegrees(104.0658, 30.5682, 1200), // 目标位置和高度orientation: {heading: Cesium.Math.toRadians(30), // 相机航向角pitch: Cesium.Math.toRadians(-60), // 相机俯仰角roll: Cesium.Math.toRadians(0), // 相机滚转角},duration: 1, // 飞行持续时间(秒)});
};
onMounted(() => {init();
});
const colorList = [{color: Cesium.Color.fromBytes(177, 0, 4, 200),},{color: Cesium.Color.fromBytes(0, 206, 209, 200),},{color: Cesium.Color.fromBytes(106, 90, 205, 200),},{color: Cesium.Color.fromBytes(255, 255, 0, 100),},
];
const changeStepsEvt = (current) => {currentVal.value = current;for (let i = 0; i < count; i++) {cubeEntity[i].box.material = colorList[currentVal.value].color;}
};
setInterval(() => {currentVal.value++;if (currentVal.value >= 4) {currentVal.value = 0;}for (let i = 0; i < count; i++) {cubeEntity[i].box.material = colorList[currentVal.value].color;}
}, 3000);
</script>
<style lang="scss" scoped>
@import './index.scss';
</style>

http://www.jinmujx.cn/news/118406.html

相关文章:

  • 生物做实验的网站网络推广都是收费
  • 网站开发软硬件条件培训机构还能开吗
  • 做网站哪个语言强seo推广方法有哪些
  • 微信营销和网站建设河南今日头条新闻
  • 免费建立网站教程百度推广平台登录
  • 山西住房建设厅官方网站网络推广的主要工作内容
  • 还有人用asp做网站吗短视频推广平台
  • WordPress文章分享图关键词seo是什么意思
  • 手机网站优化 工具如何推广自己的网站
  • 免费学做美食视频网站有哪些做网站推广一般多少钱
  • 阿拉营销网站网站优化推广
  • 上海网站建设公司怎么样百度代理推广
  • 单页网站建设教程淘宝搜索热词排名
  • 杭州上城区网站建设整合营销传播策略
  • 佛山网站建设开发石家庄百度搜索引擎优化
  • 昆山做网站的seo分析案例
  • 泰国做网站百度竞价排名费用
  • 免费网络电话无限打优化搜索点击次数的方法
  • 广州刚刚通报seo的基本工作内容
  • 做网站都需要哪些知识网站一般需要怎么推广
  • 怎么利用360域名做网站深圳排名seo公司
  • wordpress如何把网站语言改成英文免费职业技能培训网站
  • 商城网站建设解决方案公司网站建站要多少钱
  • python如何做简单的网站指数基金怎么买才赚钱
  • 西安双语网站建设做网络推广为什么会被抓
  • 关于网站设计的毕业论文2023能用的磁力搜索引擎
  • 北京营销型网站建设培训班中国培训网
  • 今天足球赛事推荐北京专业seo公司
  • 大连做网站哪家公司好高手优化网站
  • 做网站制作的摘要北京搜索引擎优化经理