krpano 用hotspot当全景图片,hotspot可以用png透明图片,全景图想要透明的解决方案

1、先定义一个共同的样式

<style name="cubeface" keep="true" visible="true" enabled="false" handcursor="true" distorted="true" rx="0.0" ry="0" rz="0.0" zorder=""  width="1000" height="1000" capture="true" scale="1.0" /> 

2、每张图片(上下左右前后)的ath,atv设置都不一样

    <hotspot name="pano1_f" style="cubeface" url="f.png" ath="0" atv="0" />
	<hotspot name="pano1_l" style="cubeface" url="l.png" ath="-90" atv="0" />
	<hotspot name="pano1_r" style="cubeface" url="r.png" ath="+90" atv="0" />
	<hotspot name="pano1_u" style="cubeface" url="u.png" ath="0" atv="-90" />
	<hotspot name="pano1_d" style="cubeface" url="d.png" ath="0" atv="+90" />
	<hotspot name="pano1_b" style="cubeface" url="b.png" ath="+180" atv="0" />  

如果6张图没有拼接好,看一下公共样式width和height是不是写的1000

尽量复制我写的这个代码测试

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值