better kml export
This commit is contained in:
@@ -33,7 +33,7 @@ import datetime
|
||||
from rowers import mytypes
|
||||
from rowers.courses import (
|
||||
course_coord_center, course_coord_maxmin,
|
||||
polygon_coord_center
|
||||
polygon_coord_center, course_coord_crewnerd_navigation,
|
||||
)
|
||||
from django.conf import settings
|
||||
from collections import OrderedDict
|
||||
@@ -2165,6 +2165,8 @@ def interactive_histoall(theworkouts, histoparam, includereststrokes,
|
||||
|
||||
def course_map(course):
|
||||
latmean, lonmean, coordinates = course_coord_center(course)
|
||||
if course.with_cn_nav_waypoints:
|
||||
latmean, lonmean, coordinates = course_coord_crewnerd_navigation(course)
|
||||
lat_min, lat_max, long_min, long_max = course_coord_maxmin(course)
|
||||
|
||||
coordinates = course_spline(coordinates)
|
||||
|
||||
Reference in New Issue
Block a user