diff options
Diffstat (limited to 'main.js')
-rw-r--r-- | main.js | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -95,12 +95,27 @@ const map = new Map({ controls: [ new Zoom({ zoomInTipLabel: 'Zooma in', + zoomInLabel: (function() { + const label = document.createElement('i'); + label.classList.add('bi', 'bi-plus'); + return label; + })(), zoomOutTipLabel: 'Zooma ut', + zoomOutLabel: (function() { + const label = document.createElement('i'); + label.classList.add('bi', 'bi-dash'); + return label; + })(), }), new Attribution({ collapsible: true, collapsed: true, tipLabel: 'Information', + label: (function() { + const label = document.createElement('i'); + label.classList.add('bi', 'bi-info'); + return label; + })(), }), ], view: new View({ @@ -128,8 +143,8 @@ const map = new Map({ element: element, })); element.onclick = function(event) { - document.getElementById('layer-selection-dialog').classList.toggle('map-dialog-hidden'); - element.classList.toggle('map-dialog-expanded'); + document.getElementById('layer-selection-panel').classList.toggle('map-panel-hidden'); + element.classList.toggle('map-panel-expanded'); }; })(); |