From e30f267181d990947e67909de4809fa941698c85 Mon Sep 17 00:00:00 2001 From: Chris Schlaeger Date: Sat, 17 Oct 2015 21:36:38 +0200 Subject: Upgrading openlayers to 3.x --- lib/postrunner/TrackView.rb | 153 +++++++++++++++++++++++++++++++------------- 1 file changed, 109 insertions(+), 44 deletions(-) (limited to 'lib') diff --git a/lib/postrunner/TrackView.rb b/lib/postrunner/TrackView.rb index fc7bc21..fb902d4 100644 --- a/lib/postrunner/TrackView.rb +++ b/lib/postrunner/TrackView.rb @@ -31,9 +31,9 @@ module PostRunner doc.unique(:trackview_style) { doc.style(style) doc.link({ 'rel' => 'stylesheet', - 'href' => 'openlayers/theme/default/style.css', + 'href' => 'openlayers/ol.css', 'type' => 'text/css' }) - doc.script({ 'src' => 'openlayers/OpenLayers.js' }) + doc.script({ 'src' => 'openlayers/ol.js' }) } doc.script(java_script) } @@ -61,59 +61,103 @@ EOT def java_script js = <