当前位置:网站首页>Cesium bind mouse events and remove mouse events
Cesium bind mouse events and remove mouse events
2022-07-19 05:14:00 【Wxy4Z1zzz】
1、 Bind mouse events
Method 1 : Create an instance each time , Multiple can coexist and according to the name ( Variables such as : Below handler) You can clear the specified event ( Recommended ).

Method 2 : Directly in viewer Add... To the instance , Clearing the event will pollute the whole viewer Instance and other mouse events in the current instance will be cleared ( It is suitable for one click to clear events on the map ).

2、 Remove mouse events
Method 1 :
handler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK)// Remove events Method 2 :
viewer.screenSpaceEventHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK);3、Cesium Common event types
Cesium.ScreenSpaceEventType.LEFT_CLICK // Left click event
Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK // Left mouse button double click event
Cesium.ScreenSpaceEventType.LEFT_DOWN // Left mouse button press event
Cesium.ScreenSpaceEventType.LEFT_UP // Left click mouse up event
Cesium.ScreenSpaceEventType.MIDDLE_CLICK // Medium key single machine
Cesium.ScreenSpaceEventType.MIDDLE_DOWN // Press the key
Cesium.ScreenSpaceEventType.MIDDLE_UP // Middle key lift
Cesium.ScreenSpaceEventType.MOUSE_MOVE // Mouse movement
Cesium.ScreenSpaceEventType.PINCH_END // Indicates the end of the two finger event on the touch surface .
Cesium.ScreenSpaceEventType.PINCH_MOVE // Two fingers move
Cesium.ScreenSpaceEventType.PINCH_START // Indicates the beginning of a two finger event on the touch surface .
Cesium.ScreenSpaceEventType.RIGHT_CLICK // Right click event
Cesium.ScreenSpaceEventType.RIGHT_DOWN // Press the right mouse button
Cesium.ScreenSpaceEventType.RIGHT_UP // Right click to lift up
Cesium.ScreenSpaceEventType.WHEEL // Mouse wheel events
边栏推荐
- How to upload qiniu cloud
- Asynchronous data SMS verification code
- Get the multi-functional version of the maximum and minimum values of the internal values of the objects in the array and the full version of the roll call system, and show the effect
- 哨兵二号轨道数据下载
- 小程序云开发表单提交并在页面中获取数据
- H5如何获取内网IP和公网IP
- 微信小程序 学习笔记
- PCA feature dimensionality reduction of machine learning + case practice
- The principle and local storage of the throttle valve of the rotation chart are summarized
- 【C语言_复习_学习第二课】什么是进制?进制之间应该如何转换
猜你喜欢
![Database training 7 [index and creation of data integrity constraints]](/img/7d/2855d945c0d7ffb970634451b600a1.png)
Database training 7 [index and creation of data integrity constraints]

微信小程序 学习笔记
![Travel data acquisition, data analysis and data mining [2022.5.30]](/img/d3/7222f852f8a8ba8cddc22a55d90fad.png)
Travel data acquisition, data analysis and data mining [2022.5.30]

IDL 6S查找表

How to upload qiniu cloud

Ucharts chart, pie chart, bar chart and line chart are used in uniapp

微信小程序获取年月日周及早上、中午、晚上

基于RTX30显卡的ArcGIS Pro2.8深度学习环境配置

ThreadLocal thread safety example and its principle

uniapp 使用uview实现折叠面板
随机推荐
使用js中的(offset,page)实现登录效果
轮播图节流阀原理及本地存储归总
IDL 读取葵花8(Himawari-8)HSD数据
Two JS methods of rolling wheel loading and modal box dragging
微信小程序wx.setClipboardData复制文本
小程序云开发表单提交并在页面中获取数据
uniapp 表单(input、radio、picker)提交获取参数值
computed和watch的区别
(精讲)Es6 剩余参数,ES6内置对象,模板字符串内容(详例宝典)及灵活运用项目的实战案例
NVIDIA GeForce Experience登录报错:验证程序加载失败,请检查您的浏览器设置,例如广告拦截程序(解决办法)
【C语言—零基础_学习_复习_第四课】数据类型及其运算
实习项目1-个性化主页配置
es6新增-字符串部分
【C语言—零基础第九课】函数中的爱恨情仇
vscode终端无法使用解决的办法
LeetCode53. 最大子数组和
js 原生对象加属性
Multifunctional (Implementation) encapsulation function
Mysql database experiment training 6, data view (detailed)
【Es6】利用添加数据,筛选并传输至页面等多项功能实现案例