Skip to content

Commit

Permalink
Handle altitudemodes better
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Tolley committed May 9, 2012
1 parent 456c6e6 commit 7c90fc0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/kamelopard/classes.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def point=(point)
else else
a = point a = point
end end
@point = Point.new a.longitude, a.latitude, a.altitude @point = Point.new a.longitude, a.latitude, a.altitude, :altitudeMode => a.altitudeMode
end end
end end


Expand Down Expand Up @@ -1995,10 +1995,10 @@ def to_kml(elem = nil)
end end
x << loc x << loc
Kamelopard.add_altitudeMode(@location.altitudeMode, x) Kamelopard.add_altitudeMode(@location.altitudeMode, x)
@link.to_kml x @link.to_kml x unless @link.nil?
@orientation.to_kml x @orientation.to_kml x unless @orientation.nil?
@scale.to_kml x @scale.to_kml x unless @scale.nil?
@resourceMap.to_kml x @resourceMap.to_kml x unless @resourceMap.nil?
elem << x unless elem.nil? elem << x unless elem.nil?
x x
end end
Expand Down

0 comments on commit 7c90fc0

Please sign in to comment.