mirror of
				https://github.com/ethan-zf/cesium-plot-js.git
				synced 2025-11-04 01:04:18 +00:00 
			
		
		
		
	Disable default behavior for double-clicking on entities.
This commit is contained in:
		
							parent
							
								
									fef308b808
								
							
						
					
					
						commit
						c23c9aa654
					
				@ -39,10 +39,15 @@ export default class Base {
 | 
				
			|||||||
    this.cesium = cesium;
 | 
					    this.cesium = cesium;
 | 
				
			||||||
    this.viewer = viewer;
 | 
					    this.viewer = viewer;
 | 
				
			||||||
    this.type = this.getType();
 | 
					    this.type = this.getType();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    this.mergeStyle(style);
 | 
					    this.mergeStyle(style);
 | 
				
			||||||
    this.cartesianToLnglat = this.cartesianToLnglat.bind(this);
 | 
					    this.cartesianToLnglat = this.cartesianToLnglat.bind(this);
 | 
				
			||||||
    this.pixelToCartesian = this.pixelToCartesian.bind(this);
 | 
					    this.pixelToCartesian = this.pixelToCartesian.bind(this);
 | 
				
			||||||
    this.eventDispatcher = new EventDispatcher();
 | 
					    this.eventDispatcher = new EventDispatcher();
 | 
				
			||||||
 | 
					    // Disable default behavior for double-clicking on entities.
 | 
				
			||||||
 | 
					    viewer.trackedEntity = undefined;
 | 
				
			||||||
 | 
					    viewer.cesiumWidget.screenSpaceEventHandler.removeInputAction(this.cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    this.onClick();
 | 
					    this.onClick();
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user