当前位置:网站首页>Cesium-1.72 learning (eagle eye map of the earth)
Cesium-1.72 learning (eagle eye map of the earth)
2022-06-30 17:10:00 【Eternal wolf tooth】

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> mapx </title>
<link rel="stylesheet" href="/Cesium-1.72/Build/Cesium/Widgets/widgets.css">
<script src="/Cesium-1.72/Build/Cesium/Cesium.js"></script>
<style> #eye {
position: absolute; width: 20%; height: 20%; bottom: 50px; right: 30px; z-index: 999; border: solid blue 1px; } .cesium-viewer-bottom{
display: none; } </style>
</head>
<div style="width:1500px;height:700px;">
<div id="cesiumContainer" style="width:100%;height:100%;"></div>
<div id="eye"></div>
</div>
</html>
<script> //1. Create a double ball var viewer = new Cesium.Viewer('cesiumContainer',{
geocoder:false, homeButton:false, sceneModePicker:false, baseLayerPicker:false, navigationHelpButton:false, animation:false, timeline:false, fullscreenButton:false }); var viewer1 = new Cesium.Viewer('eye',{
geocoder:false, homeButton:false, sceneModePicker:false, baseLayerPicker:false, navigationHelpButton:false, animation:false, timeline:false, fullscreenButton:false }); //2. Set the attribute of the ball in the eagle eye diagram let control = viewer1.scene.screenSpaceCameraController; control.enableRotate = false; control.enableTranslate = false; control.enableZoom = false; control.enableTilt = false; control.enableLook = false; let syncViewer = function() {
viewer1.camera.flyTo({
destination: viewer.camera.position, orientation: {
heading: viewer.camera.heading, pitch: viewer.camera.pitch, roll: viewer.camera.roll }, duration: 0.0 }); }; //3. Sync viewer.entities.add({
position : Cesium.Cartesian3.fromDegrees(0, 0), label : {
text : new Cesium.CallbackProperty(function(){
syncViewer(); return ""; }, true) } }); </script>
Case code :https://github.com/zhangxuhui1992/cesium
边栏推荐
- [activity registration] it's your turn to explore the yuan universe! I will be waiting for you in Shenzhen on July 2!
- Nut cloud - sync files on your mobile hard drive on your new computer
- Niuke: how many different binary search trees are there
- [wechat applet] basic use of common components (view/scroll-view/wiper, text/rich-text, button/image)
- 基于51单片机的计件器设计
- 24: Chapter 3: develop pass service: 7: user defined exceptions (to represent errors in the program); Create graceexceptionhandler to handle exceptions globally and uniformly (build JSON data of corre
- Mathematical modeling for war preparation 35 time series prediction model
- addmodule_ allmerge_ ams_ im
- Internet R & D efficiency practice qunar core field Devops landing practice
- List becomes vector list becomes vector list vector
猜你喜欢
![[wechat applet] basic use of common components (view/scroll-view/wiper, text/rich-text, button/image)](/img/3b/05dbf03024088c5f94363f157a1701.png)
[wechat applet] basic use of common components (view/scroll-view/wiper, text/rich-text, button/image)

Eight basic sorting (detailed explanation)

Restartprocessifvisible process

IO流_递归

声网自研传输层协议 AUT 的落地实践丨Dev for Dev 专栏

Etcd教程 — 第八章 Etcd之Compact、Watch和Lease API

香港回归25周年 香港故宫博物馆正式开放成文化新地标

Etcd tutorial - Chapter 8 compact, watch, and lease APIs for etcd

每日刷题记录 (九)

9:第三章:电商工程分析:4:【通用模块】;(待写……)
随机推荐
addmodule_allmerge_ams_im
【OpenCV 例程200篇】215. 基于多段线绘制近似椭圆
24: Chapter 3: develop pass service: 7: user defined exceptions (to represent errors in the program); Create graceexceptionhandler to handle exceptions globally and uniformly (build JSON data of corre
[Verilog basics] octal and hexadecimal representation of decimal negative numbers
redis数据结构分析
nodejs学习笔记二
Data security compliance has brought new problems to the risk control team
山西化工园区智能化管控平台建设时间表
[JVM] takes you to learn about the garbage collection mechanism (GC) in the JVM -- including diagrams
Etcd教程 — 第八章 Etcd之Compact、Watch和Lease API
Compile - compile for itop4412 development board makefile
Etcd tutorial - Chapter 9 etcd implementation of distributed locks
Alibaba cloud disk sharing compressed package
MySQL8 NDB Cluster安装部署
定时任务删除指定时间的的数据
期未课程设计:基于SSM的产品销售管理系统
STL教程7-set、pair对组和仿函数
[demo] write file circularly
pref使用记录
Design of piece counter based on 51 single chip microcomputer