aboutsummaryrefslogtreecommitdiff
path: root/web/load.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/load.js')
-rw-r--r--web/load.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/load.js b/web/load.js
index 528b9652..0d2ccd8a 100644
--- a/web/load.js
+++ b/web/load.js
@@ -157,6 +157,7 @@
extjsVersion = '6.2.0';
olVersion = '6.1.1';
+ olLayerSwitcherVersion = '3.8.3';
proj4jsVersion = '2.6.0';
if (debugMode) {
@@ -176,6 +177,9 @@
addStyleFile('https://cdn.traccar.com/js/ol/' + olVersion + '/ol.css');
addScriptFile('https://cdn.traccar.com/js/ol/' + olVersion + '/ol.js');
+ addStyleFile('https://cdn.traccar.com/js/ol-layerswitcher/' + olLayerSwitcherVersion + '/ol-layerswitcher.css');
+ addScriptFile('https://cdn.traccar.com/js/ol-layerswitcher/' + olLayerSwitcherVersion + '/ol-layerswitcher.js');
+
if (debugMode) {
addScriptFile('https://cdn.traccar.com/js/proj4js/' + proj4jsVersion + '/proj4-src.js');
} else {