diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-02-24 22:55:36 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-02-24 22:55:44 -0800 |
commit | 54ddf25bc128762fe99f525617f760514f16e82f (patch) | |
tree | 47d62bbbce757e9587896af587d1cc28bea6e6c9 /web/load.js | |
parent | bd488ec80ef352d189373db3e99e3c12b7b2201d (diff) | |
download | trackermap-web-54ddf25bc128762fe99f525617f760514f16e82f.tar.gz trackermap-web-54ddf25bc128762fe99f525617f760514f16e82f.tar.bz2 trackermap-web-54ddf25bc128762fe99f525617f760514f16e82f.zip |
Implement map switcher
Diffstat (limited to 'web/load.js')
-rw-r--r-- | web/load.js | 4 |
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 { |