当前位置:网站首页>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);}},边栏推荐
猜你喜欢

The complex "metaverse" will be interpreted for you, and the Link Reading APP will be launched soon!

链读推荐:从瓷砖到生成式 NFT

Multi-table query Notes

国内数字藏品投资价值分析

One step ahead, don't miss it again, the chain reading APP will be launched soon!

pytorch框架学习(4)torchvision模块&训练一个简单的自己的CNN (一)

pytorch框架学习(3)torch.nn.functional模块和nn.Module模块

The latest and most complete digital collection sales calendar-07.26

【写下自用】每次都忘记如何train?记录如何训练自己的yolov5

pytorch框架学习(2)使用GPU训练
随机推荐
Multi-table query Notes
小程序wx.request简单Promise封装
idm下载器如何使用 idm下载器使用技巧
共识计算和激励机制
链读|最新最全的数字藏品发售日历-07.29
自适应空间特征融合( adaptively spatial feature fusion)一种基于数据驱动的金字塔特征融合策略
Analysis of the investment value of domestic digital collections
图片批量添加水印批量加背景缩放批量合并工具picUnionV4.0
链读|最新最全的数字藏品发售日历-08.02
redis集群模式
WSTP初体验
2021-07-09
Pony语言学习(八):引用能力(Reference Capabilities)
你不知道的常规流
网安超基础一周目
速刷正则表达式一周目(上)
redis---非关系型数据库(NoSql)
基于Qiskit——《量子计算编程实战》读书笔记(四)
使用Google Protobuf 在 Matlab 中工作
操作表 函数的使用