diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-07-04 10:34:53 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-07-04 10:34:53 -0700 |
commit | d187ed9b1ffa1835c5498ff5f2e3652447d7c68c (patch) | |
tree | 9980db1c83d4c659151915879ca85c47eb3db6df /modern/src/map/switcher/switcher.js | |
parent | f2c65d56b20998384c1539b5d1c62c0605a0b8f8 (diff) | |
download | trackermap-web-d187ed9b1ffa1835c5498ff5f2e3652447d7c68c.tar.gz trackermap-web-d187ed9b1ffa1835c5498ff5f2e3652447d7c68c.tar.bz2 trackermap-web-d187ed9b1ffa1835c5498ff5f2e3652447d7c68c.zip |
Migrate to MapLibre
Diffstat (limited to 'modern/src/map/switcher/switcher.js')
-rw-r--r-- | modern/src/map/switcher/switcher.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modern/src/map/switcher/switcher.js b/modern/src/map/switcher/switcher.js index ff9fbe97..a755645b 100644 --- a/modern/src/map/switcher/switcher.js +++ b/modern/src/map/switcher/switcher.js @@ -15,12 +15,12 @@ export class SwitcherControl { onAdd(map) { this.map = map; this.controlContainer = document.createElement('div'); - this.controlContainer.classList.add('mapboxgl-ctrl'); - this.controlContainer.classList.add('mapboxgl-ctrl-group'); + this.controlContainer.classList.add('maplibregl-ctrl'); + this.controlContainer.classList.add('maplibregl-ctrl-group'); this.mapStyleContainer = document.createElement('div'); this.styleButton = document.createElement('button'); this.styleButton.type = 'button'; - this.mapStyleContainer.classList.add('mapboxgl-style-list'); + this.mapStyleContainer.classList.add('maplibregl-style-list'); for (const style of this.styles) { const styleElement = document.createElement('button'); styleElement.type = 'button'; @@ -48,8 +48,8 @@ export class SwitcherControl { } this.mapStyleContainer.appendChild(styleElement); } - this.styleButton.classList.add('mapboxgl-ctrl-icon'); - this.styleButton.classList.add('mapboxgl-style-switcher'); + this.styleButton.classList.add('maplibregl-ctrl-icon'); + this.styleButton.classList.add('maplibregl-style-switcher'); this.styleButton.addEventListener('click', () => { this.styleButton.style.display = 'none'; this.mapStyleContainer.style.display = 'block'; |