From d279b55eaaf734b9e6d1477b56853208a165add9 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Tue, 7 May 2013 15:15:06 +0100 Subject: [PATCH] Set altitude using config var --- app/helpers/posts_helper.rb | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/app/helpers/posts_helper.rb b/app/helpers/posts_helper.rb index 0076f86..9648091 100644 --- a/app/helpers/posts_helper.rb +++ b/app/helpers/posts_helper.rb @@ -15,7 +15,7 @@ module PostsHelper :geolocation => { :lat => post.lat, :lon => post.lon, - :alt => 0 + :alt => ENV['APOLLO_TRANSLATE_Z'] || 0 } }, :text => { @@ -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, :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