aboutsummaryrefslogtreecommitdiffstats
path: root/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'main.js')
-rw-r--r--main.js19
1 files changed, 17 insertions, 2 deletions
diff --git a/main.js b/main.js
index dd365e3..b70ff56 100644
--- a/main.js
+++ b/main.js
@@ -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');
};
})();