aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/switcher
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-11-01 18:46:57 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-11-01 18:46:57 -0800
commitbee6677be113e4215d07abd54db32dd4fc37b3b0 (patch)
treede10f4e7cc8832038b80b69749173f4f4533a1da /modern/src/map/switcher
parent47b95d6739d8bfcb2ee285ffaaffc8fc41520f1f (diff)
downloadetbsa-traccar-web-bee6677be113e4215d07abd54db32dd4fc37b3b0.tar.gz
etbsa-traccar-web-bee6677be113e4215d07abd54db32dd4fc37b3b0.tar.bz2
etbsa-traccar-web-bee6677be113e4215d07abd54db32dd4fc37b3b0.zip
Another switch fix
Diffstat (limited to 'modern/src/map/switcher')
-rw-r--r--modern/src/map/switcher/switcher.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/modern/src/map/switcher/switcher.js b/modern/src/map/switcher/switcher.js
index c2b9d6d..ff9fbe9 100644
--- a/modern/src/map/switcher/switcher.js
+++ b/modern/src/map/switcher/switcher.js
@@ -32,13 +32,9 @@ export class SwitcherControl {
if (srcElement.classList.contains('active')) {
return;
}
- console.log('beforeSwitch start');
this.beforeSwitch();
- console.log('beforeSwitch end');
this.map.setStyle(JSON.parse(srcElement.dataset.uri));
- console.log('afterSwitch start');
this.afterSwitch();
- console.log('afterSwitch end');
this.mapStyleContainer.style.display = 'none';
this.styleButton.style.display = 'block';
const elms = this.mapStyleContainer.getElementsByClassName('active');