cesium Clear Selected events
Here is not necessarily the case for your project, but can give you an idea. Clear selected, is to restore the state before you selected. For example, you click on a highlighted surface, surface color changed; and a divPoint box will pop up. Clear selected at this time, you just need to select the face of the color reproduction and the divPoint box to hide it.
code show as below:
1 // Clear layer and logoff events 2 function clearAll () { . 3 // whether the presence of high-gloss before determination . 4 IF (highlightFace) { . 5 highlightFace.material = highlightFace.material0; . 6 } . 7 . 8 var selectCancel = new new Cesium .ScreenSpaceEventHandler (viewer.canvas); . 9 selectCancel.setInputAction ( function (Event) { 10 selectCancel.removeInputAction (Cesium.ScreenSpaceEventType.LEFT_CLICK); . 11 }, Cesium.ScreenSpaceEventType.RIGHT_CLICK); 12 is //Hide divPoint 13 is $ ( "label." ) .Hide (); 14 }
Study group: 854 184 700