From 54ddf25bc128762fe99f525617f760514f16e82f Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 24 Feb 2021 22:55:36 -0800 Subject: Implement map switcher --- web/load.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'web/load.js') diff --git a/web/load.js b/web/load.js index 528b965..0d2ccd8 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 { -- cgit v1.2.3