aboutsummaryrefslogtreecommitdiff
path: root/web/load.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-02-11 12:12:03 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-02-11 12:12:03 +1300
commit2f1a58642ff7fc17cf026fa1b03b179b4658c08e (patch)
tree95e8963257413a004c6718dc2ffea950a006404d /web/load.js
parentbb64d35e56882aa3cf36ac8cf7a46ea1ce0db472 (diff)
downloadtrackermap-web-2f1a58642ff7fc17cf026fa1b03b179b4658c08e.tar.gz
trackermap-web-2f1a58642ff7fc17cf026fa1b03b179b4658c08e.tar.bz2
trackermap-web-2f1a58642ff7fc17cf026fa1b03b179b4658c08e.zip
Update JavaScript librariesv3.10
Diffstat (limited to 'web/load.js')
-rw-r--r--web/load.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/web/load.js b/web/load.js
index 2ef2ac7f..fc676b76 100644
--- a/web/load.js
+++ b/web/load.js
@@ -119,7 +119,7 @@
extjsVersion = '6.2.0';
fontAwesomeVersion = '4.7.0';
- olVersion = '3.20.1';
+ olVersion = '4.0.0';
if (debugMode) {
addScriptFile('//cdnjs.cloudflare.com/ajax/libs/extjs/' + extjsVersion + '/ext-all-debug.js');
@@ -138,7 +138,11 @@
addStyleFile('//cdnjs.cloudflare.com/ajax/libs/font-awesome/' + fontAwesomeVersion + '/css/font-awesome.min.css');
addStyleFile('//cdnjs.cloudflare.com/ajax/libs/ol3/' + olVersion + '/ol.css');
- addScriptFile('//cdnjs.cloudflare.com/ajax/libs/ol3/' + olVersion + '/ol-debug.js');
+ if (debugMode) {
+ addScriptFile('//cdnjs.cloudflare.com/ajax/libs/ol3/' + olVersion + '/ol-debug.js');
+ } else {
+ addScriptFile('//cdnjs.cloudflare.com/ajax/libs/ol3/' + olVersion + '/ol.js');
+ }
addSvgFile('images/default.svg', 'defaultSvg');
addSvgFile('images/arrow.svg', 'arrowSvg');