require 'fit4ruby' require 'postrunner/ViewWidgets' module PostRunner class TrackView include ViewWidgets def initialize(activity) @activity = activity end def head(doc) doc.link({ 'rel' => 'stylesheet', 'href' => 'openlayers/theme/default/style.css', 'type' => 'text/css' }) doc.style(style) doc.script({ 'src' => 'openlayers/OpenLayers.js' }) doc.script(java_script) end def div(doc) frame(doc, 'Map') { doc.div({ 'id' => 'map', 'class' => 'trackmap' }) } end private def style <