Class: PostRunner::TrackView
- Inherits:
-
Object
- Object
- PostRunner::TrackView
show all
- Includes:
- ViewWidgets
- Defined in:
- lib/postrunner/TrackView.rb
Instance Method Summary
collapse
#frame, #view_widgets_style
Constructor Details
#initialize(activity) ⇒ TrackView
Returns a new instance of TrackView.
11
12
13
|
# File 'lib/postrunner/TrackView.rb', line 11
def initialize(activity)
@activity = activity
end
|
Instance Method Details
#div(doc) ⇒ Object
24
25
26
27
28
|
# File 'lib/postrunner/TrackView.rb', line 24
def div(doc)
frame(doc, 'Map') {
doc.div({ 'id' => 'map', 'class' => 'trackmap' })
}
end
|
#head(doc) ⇒ Object
15
16
17
18
19
20
21
22
|
# File 'lib/postrunner/TrackView.rb', line 15
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
|