Added button to close Map controls.

This commit is contained in:
vershwal
2018-03-18 17:17:28 +05:30
parent efddfd271c
commit 9d9be8fd26
4 changed files with 17 additions and 2 deletions
+5
View File
@@ -350,6 +350,11 @@ export function uiBackground(context) {
.call(svgIcon('#icon-layers', 'light'))
.call(paneTooltip);
pane
.append('button')
.on('click', function() { uiBackground.hidePane(); })
.call(svgIcon('#icon-close'));
pane
.append('h2')
.text(t('background.title'));
+5
View File
@@ -382,6 +382,11 @@ export function uiHelp(context) {
.call(tooltipBehavior);
var shown = false;
pane
.append('button')
.on('click', function() { uiHelp.hidePane(); })
.call(svgIcon('#icon-close'));
var toc = pane
.append('ul')
+5
View File
@@ -457,6 +457,11 @@ export function uiMapData(context) {
.call(paneTooltip);
pane
.append('button')
.on('click', function() { uiMapData.hidePane(); })
.call(svgIcon('#icon-close'));
pane
.append('h2')
.text(t('map_data.title'));