I have a project which load the Cesium map with several KML files. Some of them are KML point. Right now, I have to develop a method to answer the event when click on the KML point.
Before this we had Google Earth and we have code like below:
......
......
google.earth.addEventListener(ge.getGlobe(), 'dblclick', myEventHandler);
......
......
var myEventHandler =function(event) {
if(event.getTarget().getGeometry().getType() == "KmlPoint"){
var target = event.getTarget();
var description = target.getDescription();
var objectId = target.getId();
document.getElementById("c_ground_amsl_elevation").value = event.getAltitude()*3.2808379;
}
......
......
We used this event.getAltitude() to get the value we need. Is there any relevant function we could use in Cesium?