summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/postrunner/TrackView.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/postrunner/TrackView.rb b/lib/postrunner/TrackView.rb
index 3500972..58f3644 100644
--- a/lib/postrunner/TrackView.rb
+++ b/lib/postrunner/TrackView.rb
@@ -33,6 +33,8 @@ module PostRunner
def to_html(doc)
return unless @has_geo_data
+ doc.body_init_script('pr_trackview_init_xy();')
+
doc.head {
doc.unique(:trackview_style) {
doc.style(style)
@@ -51,7 +53,6 @@ module PostRunner
doc.div({ 'id' => 'map', 'class' => 'trackmap' })
}.to_html(doc)
- doc.body_init_script('pr_trackview_init_xy();')
end
private