aboutsummaryrefslogtreecommitdiff
path: root/web/load.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-04-14 09:57:13 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-04-14 09:57:13 +1200
commit40f6326b57c0cb747066d79ba5849ea84cb9698b (patch)
treedb09710037b120ffa86ee60df15bd71552a44b99 /web/load.js
parenta077f0fde3e1bc67ed3fb6f9ee3e4a0f1837a703 (diff)
downloadtrackermap-web-40f6326b57c0cb747066d79ba5849ea84cb9698b.tar.gz
trackermap-web-40f6326b57c0cb747066d79ba5849ea84cb9698b.tar.bz2
trackermap-web-40f6326b57c0cb747066d79ba5849ea84cb9698b.zip
Implement new map layers (#366)
Diffstat (limited to 'web/load.js')
-rw-r--r--web/load.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/web/load.js b/web/load.js
index fc676b76..4baa6901 100644
--- a/web/load.js
+++ b/web/load.js
@@ -1,5 +1,5 @@
(function () {
- var debugMode, touchMode, locale, localeParameter, extjsVersion, fontAwesomeVersion, olVersion, i, language, languages;
+ var debugMode, touchMode, locale, localeParameter, extjsVersion, proj4jsVersion, fontAwesomeVersion, olVersion, i, language, languages;
function addStyleFile(file) {
var link = document.createElement('link');
@@ -120,6 +120,7 @@
extjsVersion = '6.2.0';
fontAwesomeVersion = '4.7.0';
olVersion = '4.0.0';
+ proj4jsVersion = '2.4.3';
if (debugMode) {
addScriptFile('//cdnjs.cloudflare.com/ajax/libs/extjs/' + extjsVersion + '/ext-all-debug.js');
@@ -144,6 +145,12 @@
addScriptFile('//cdnjs.cloudflare.com/ajax/libs/ol3/' + olVersion + '/ol.js');
}
+ if (debugMode) {
+ addScriptFile('//cdnjs.cloudflare.com/ajax/libs/proj4js/' + proj4jsVersion + '/proj4-src.js');
+ } else {
+ addScriptFile('//cdnjs.cloudflare.com/ajax/libs/proj4js/' + proj4jsVersion + '/proj4.js');
+ }
+
addSvgFile('images/default.svg', 'defaultSvg');
addSvgFile('images/arrow.svg', 'arrowSvg');
addSvgFile('images/car.svg', 'carSvg');