Ver código fonte

Restore POI transform without scaling

master
Adrian Short 11 anos atrás
pai
commit
824c2035f1
1 arquivos alterados com 10 adições e 10 exclusões
  1. +10
    -10
      app/helpers/posts_helper.rb

+ 10
- 10
app/helpers/posts_helper.rb Ver arquivo

@@ -47,16 +47,16 @@ module PostsHelper
}

# http://layar.com/documentation/browser/api/getpois-response/hotspots/
# res[:transform] = {
# :rotate => {
# :rel => true,
# :axis => { :x => 0, :y => 0, :z => 1 },
# :angle => 0
# },
# :translate => { :x => 0, :y => -0.075, :z => ENV['APOLLO_TRANSLATE_Z'] || 1.75 },
# :scale => calculate_scale(post.distance.to_i),
# :distance => post.distance
# }
res[:transform] = {
:rotate => {
:rel => true,
:axis => { :x => 0, :y => 0, :z => 1 },
:angle => 0
},
:translate => { :x => 0, :y =>0, :z => ENV['APOLLO_TRANSLATE_Z'] || 1.75 },
# :scale => calculate_scale(post.distance.to_i),
:distance => post.distance
}
end
res
end


Carregando…
Cancelar
Salvar