Browse Source

Add angle of view to face user

master
Adrian Short 11 years ago
parent
commit
2700a7ac34
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      app/helpers/posts_helper.rb

+ 9
- 1
app/helpers/posts_helper.rb View File

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

# http://layar.com/documentation/browser/api/getpois-response/hotspots/
res[:transform] = { 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 end
res res


Loading…
Cancel
Save