浏览代码

Add angle of view to face user

master
Adrian Short 11 年前
父节点
当前提交
2700a7ac34
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. +9
    -1
      app/helpers/posts_helper.rb

+ 9
- 1
app/helpers/posts_helper.rb 查看文件

@@ -34,8 +34,16 @@ module PostsHelper
:reducedURL => subscription.icon_url,
:size => 60
}

# http://layar.com/documentation/browser/api/getpois-response/hotspots/
res[:transform] = {
:rel => true # icon always faces the user
:rotate => {
:rel => true,
:axis => { :x => 0, :y => 0, :z => 1 },
:angle => 0
},
:translate => { :x => 0, :y => -0.075, :z => 0 },
:scale => 0.01
}
end
res


正在加载...
取消
保存