我正在尝试与Pannellum合作,在那我该如何获得热点俯仰和偏航的另一个功能。
"pitch":8,
"yaw": 20,
"cssClass": "custom-hotspot2",
"clickHandlerFunc": clickHandlerBox2,
我想在下面的函数Itried beloow函数中获得该音调和偏航(8和20)
function clickHandlerBox2(hotSpotDiv, args) {
var pitch=viewer.getPitch();
var yaw=viewer.getYaw();
}
但这是根据Pannellum观看者的运动提供动态数据。如何获得与上述完全相同的俯仰和偏航?
要获得俯仰和偏航(8和20),请尝试此
"clickHandlerArgs": {"pitch": 8, "yaw": 20},
然后在clickHandlerBox2函数中调用它,例如
args.pitch and args.yaw
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句