当前位置:网站首页>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
边栏推荐
- Halcon knowledge: regional topics [07]
- differential analysis between different groups nichenet for silicosis成功运行!
- pref使用记录
- [activity registration] it's your turn to explore the yuan universe! I will be waiting for you in Shenzhen on July 2!
- IO流_递归
- 几个跨端开发神器
- “推广+搞笑剧情”,如何碰撞出爆款的火花?
- SSH tool pyqt
- CGR 21 (D,E,F)
- Mathematical modeling for war preparation 33- grey prediction model 2
猜你喜欢
Consolidate entry-C basic variables and constants
Raft介绍
Data security compliance has brought new problems to the risk control team
八大基本排序(详解)
【微信小程序】常用组件基本使用(view/scroll-view/swiper、text/rich-text、button/image)
Tutoriel etcd - chapitre 8 API compacte, Watch et lease pour etcd
ROC-RK3566-PC使用10.1寸IPS触摸屏显示
Etcd教程 — 第九章 Etcd之实现分布式锁
differential analysis between different groups nichenet for silicosis成功运行!
【OpenCV 例程200篇】215. 基于多段线绘制近似椭圆
随机推荐
Etcd教程 — 第八章 Etcd之Compact、Watch和Lease API
php7.3 centos7.9安装sqlserver扩展
Nichenet actual silicosis
【微信小程序】小程序的宿主环境
Etcd教程 — 第八章 Etcd之Compact、Watch和Lease API
leetcode:787. K 站中转内最便宜的航班【k步最短路 + dfs记忆化 + defaultdict(dict)】
Required plug-ins for idea
Niuke: how many different binary search trees are there
Restartprocessifvisible process
Mathematical modeling for war preparation 34-bp neural network prediction 2
Internet R & D efficiency practice qunar core field Devops landing practice
基于SSM实现毕业设计管理系统
pref使用记录
登录框Tricks
Multi terminal collaboration of Huawei accounts to create a better internet life
Compile - compile for itop4412 development board makefile
If your MES is not upgraded, it will be eliminated
CGR 21 (D,E,F)
Niuke.com: minimum cost of climbing stairs
CMakeLists 基础