Browse Source

Set altitude mode if no elevation data.

debian-sid
Tom Payne 14 years ago
parent
commit
6f3b4b6057
  1. 2
      igc2kmz/__init__.py

2
igc2kmz/__init__.py

@ -80,7 +80,7 @@ class Flight(object):
def __init__(self, track, **kwargs):
self.track = track
self.altitude_mode = 'absolute'
self.altitude_mode = 'absolute' if self.track.elevation_data else 'clampToGround'
self.color = 'ff0000ff'
self.width = 2
self.pilot_name = track.pilot_name

Loading…
Cancel
Save