当前位置:网站首页>cesium add point, move point
cesium add point, move point
2022-08-10 05:48:00 【Why can't I get enough to eat?】
The specific effects are as follows:
The main code is as follows:
// Add modeladdPic(longitude, latitude, altitude) {// When there are other entities on the earth, clear and addif (viewer.entities.values.length >= 1) {var existedId = viewer.entities.getById(viewer.entities.values[0].id);viewer.entities.remove(existedId);}this.paramForm.longitude = longitude;this.paramForm.latitude = latitude;this.paramForm.altitude = altitude;// add pointviewer.entities.add({// the position of the pointposition : Cesium.Cartesian3.fromDegrees(longitude, latitude, altitude),//pointpoint : {pixelSize : 10,//The size of the pointcolor : Cesium.Color.RED,//The color of the pointoutlineColor:Cesium.Color.YELLOW,//Outer circle coloroutlineWidth:5,//Outer circle size}});},
I mainly control the change of latitude and longitude through the input box
The following event is triggered when the latitude and longitude height changes
angleChange(flag, val) {let num = parseInt(val);if (flag == "lng") {// when longitude changesthis.addPic(num, this.paramForm.latitude, this.paramForm.altitude);} else if (flag == "lat") {// when the latitude changesthis.addPic(this.paramForm.longitude, num, this.paramForm.altitude);} else if (flag == "alt") {// when the height (range) changesthis.addPic(this.paramForm.longitude, this.paramForm.latitude, num);}},
边栏推荐
猜你喜欢
【yolov5训练错误】WARNING: Ignoring corrupted image
matlab中的常用的类型转换
Pony语言学习(八):引用能力(Reference Capabilities)
PyTorch 入门之旅
Tkinter 入门之旅
Count down the six weapons of the domestic interface collaboration platform!
The latest and most complete digital collection sales calendar-07.27
基于Qiskit——《量子计算编程实战》读书笔记(一)
【写下自用】每次都忘记如何train?记录如何训练自己的yolov5
十年磨一剑!数字藏品行情软件,链读APP正式开放内测!
随机推荐
Four characteristics of ACID
opencv
再肝3天,整理了90个 NumPy 例子,不能不收藏!
链读推荐:从瓷砖到生成式 NFT
链读好文:热加密存储与冷加密存储有什么区别?
智能合约和去中心化应用DAPP
各个架构指令集对应的机型
链读|最新最全的数字藏品发售日历-08.02
PCL,VS配置过程中出现:用 _sopen_s 代替 _open, 或用_CRT_SECURE_NO_WARNNINGS错误
利用 crontab 拷贝大文件
图片批量添加水印批量缩放图片到指定大小
ZigBee 网络设备相关内容
小程序wx.request简单Promise封装
pytorch框架学习(3)torch.nn.functional模块和nn.Module模块
matlab中的常用的类型转换
几种绘制时间线图的方法
你不知道的常规流
The latest and most complete digital collection sales calendar-07.26
IO流【】【】【】
Qiskit 学习笔记2