目前知道鼠标经过的地方获取经纬度,请问飞行过程中,屏幕中心的经纬度能监听吗
onMouseMove: function (movement) {
var degrees = Freedom.iClient3D.screenToDegrees(movement.endPosition);
if (degrees != null) {
var str = "经度:" + degrees.longitude.toFixed(2) + " 纬度:" + degrees.latitude.toFixed(2);
$("#mouseposition").html(str);
} else {
var str = "经度:-- 纬度:--";
$("#mouseposition").html(str);
}
},