diff options
Diffstat (limited to 'modern/src/map/switcher')
-rw-r--r-- | modern/src/map/switcher/switcher.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modern/src/map/switcher/switcher.js b/modern/src/map/switcher/switcher.js index ff9fbe97..c2b9d6d4 100644 --- a/modern/src/map/switcher/switcher.js +++ b/modern/src/map/switcher/switcher.js @@ -32,9 +32,13 @@ 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'); |